Facebook Connect - Add events to an Events Page (not profile) - facebook

I have created Facebook pages with an events tab. I am currently trying to add events to this events page via the Facebook connect API but can't work out how do it.
I can add events to my profile no problem.
Can anyone tell me how to add events to a page, is it possible?
Alternatively is there a way I can add an event to my profile and have my page automatically pick up this event (I can't see anything in the settings for this?).
Any help very much appreaciated!
Thanks
C

Current API doesn't support this as far as I can see.
There is an API function which is in beta at the moment (but doesn't seem to be working as
yet) which according to the documentation is designed to publish a post into the stream on the wall of a user, group, page or event, so this should provide the functionality needed.

Related

Automatically Detect Facebook Activity

I am an experienced WordPress developer but sadly I have very little experience with Facebook SDK's.
What I am wondering is if it is possible to create code that will detect whenever a user likes a post/page, "unlikes" a post/page, shares a post/page and logs in to the website via Facebook.
I know that if the like, share and login buttons are coded by myself that I can get a response from the events. However I am wanting to add code to my achievements/points plugin that would detect the events from code that is created by someone else, such as a plugin or the website owner so that it can award the user with points/achievements.
I have tried using the "FB.Event.subscribe" event in the JS SDK to hook into events but this has so far been unsuccessful.
P.S. I don't expect a full tutorial or "cut & paste" code, I am simply wondering if it is possible or if I am wasting my time. Any helpful links and/or offers to help will be greatly appreciated.

Get Realtime Updates from a Facebook page

I am working on a web app that use Facebook login. The purpose of the app is to get information about fan pages that the user has in his account (for which he got admin privileges). I work mostly with the insights informations but this is not the issue. Now I would like to receive realtime update from the page like new messages, page posts reply etc. I've read the documentation https://developers.facebook.com/docs/reference/api/page/#realtime
and I don't understand the part about adding the app to the page. It is required that the app to be installed for example in one of the tabs? If so, is there a way not to do that and still receive the informations that I want? Also when I try to create a Realtime Update Subscriptions for the page object no "posts" field was available, then how to get realtime updates about it? I am a little confuse and any guidance and advise is more than welcomed.
P.S. I am using PHP SDK, if this helps with something.
I've read the documentation
How about reading it again?
I don't understand the part about adding the app to the page. It is required that the app to be installed for example in one of the tabs? If so, is there a way not to do that and still receive the informations that I want?
Quote from the docs part you linked to yourself:
Note: You might think that because you're adding this via the tabs API that this is a tab app. It's not. This app isn't visible to users as a page app and isn't managed via any UI.
Also when I try to create a Realtime Update Subscriptions for the page object no "posts" field was available, then how to get realtime updates about it?
You can subscribe to the page’s feed.

How can i find Facebook Open Graph Activity Plugin

I have developed a website that uses Facebook Open Graph methods. But when i submit it facebook returned me with a message that i have to put something in my website like the image below
Where can i find a plugin like this?
I only find this one ; https://developers.facebook.com/docs/reference/plugins/activity/
but it's useless.
Thanks for your help.
There is no plugin like this currently available. You have to develop one yourself.
You should be using facebook connect and keeping track of all this actions as well as submitting them to graph API. If so, you only need to ad this on/off button and activity log.
This way the user has control over his activity...

Is it possible to set message board as a notification in Workflow with Kaleo in liferay?

I am working in Liferay. Recently I have developed 3 level workflow using Kaleo in liferay for reviewing the content. But what happens is when user who submit any content then the users related in the chain will be notified through mail. But I want something different if possible. What i wish is, put one MessageBoard on the Home Screen then whenever anyone post content the users will get the notification in the MessageBoard. The idea is you can say somewhat to facebook. That whenever your friend post a comment you get notification via mail as well as you get notification on the home screen of your account. Is it possible to achieve the same thing in Liferay using Kaleo Workflow or anyother way to do this?
Valuable suggestions are welcomed.......
Thanks
For notification from MessageBoard your user can click on Subscribe link and should get mail.
For yout other (facebook like) requirements liferay has few built in portlets that do that (I'm not facebook user so I guess): Friends, Friends Activities, Requests, Wall, Summary. Note that these can only be added to your users pages (public/private).
You even have Activities portlet that displays all community users activities.
If this is not what you are looking for let me know.

How to register a Facebook Application dynamically via Graph API like wildfireapp and others doing?

I am trying to create a sweepstakes application.
I am trying to copy wildfire.
But I am unable to create facebook applications dynamically like they are doing.
I checked it they are using graph api to show on front end but there is no method available in graph api to create applications dynamically.
Can anyone please guide me how wildfire is doing dynamic app creation. Is there any alternative available?
In general, they are likely not creating new applications for each client. Unless you can show us evidence of this, it is the same application being installed many times onto their client's Facebook Pages.
The application script can detect the Page ID and change the display logic appropriately. Seen here:
Get Facebook fan page ID
If you really want to create applications for your clients, take a look at this thread:
http://facebook.stackoverflow.com/questions/6264080/create-a-facebook-application-programmatically
EDIT (Not being able to comment is horrible) in response to J's post:
There is not a way to create applications entirely programmatically, but you can get really close creating a user-flow around:
https://www.facebook.com/connect/create_app.php?api_key=[key]&name=app_name
Where [key] is the api_key of the parent application. It isn't documented anywhere so you should have a manual fall back in place. The link above does work to create a new Facebook application tied to the currently logged in user (the parent api_key does not seem to have any effect but it is required).
To determine the api_key of the application created, ask the user for the appropriate permission and query /accounts to retrieve a list of Facebook applications the user owns. Do this before and after the user clicks the above link to determine which one was just created. From there, have the user get a new access_token and get the appropriate permissions to modify application settings. You should then customize the newly created application.
Mike
This has been mentioned several times in the old Facebook forum.
Wildfire, North Social et al, do not create applications dynamically. It's the same application being installed by many clients.
How is this possible? Well, when a Page loads a tab application, Facebook pass you a signed_request parameter. When you decode this signed request with your application's id and secret, you will find inside the page id from where the tab application is being called. You can then use this to work out which of your clients is making the call to your code and therefore what content to deliver to the browser.
There have been changes to the Graph API recently to allow you to manage applications once created but you cannot (and likely will never be able to) create applications programmatically through the Graph API.
The second thread mentioned by Mike mentions child applications but this was deprecated from the Facebook code base some time ago and would not actually allow the creation of applications in the way I assume you want.
J