Facebook Open Graph Custom Actions on the Fly - facebook

I am giving a look to the Open Graph API. From what I see so far we must set up the actions and objects in the App configuration on Facebook.
What I am looking for is to set up actions and objects on the fly using PHP or Javascript.
I want to build an application that will be integrated in a Social Networking CMS. I do not want my customers to set up each action and object on the Dev App, it could take forever. I simply want to fire them with PHP based on the different actions that can be done in this CMS (such as: watch a video, listen music, chatting with friends etc.. etc.. )
Is there a way to create actions on the fly with PHP or Javascript?
Thanks

No - each action you setup has to be approved by Facebook before it can be used outside the developers of your application.

I had the same question, seems to be buried in the opengraph section:
https://developers.facebook.com/docs/technical-guides/opengraph/publish-action/

Related

Windows 10 UAP: Share data on Facebook

Is it possible to correctly share data on Facebook post using DataRequest and DataTransferManager classes?
I am trying to create a Facebook post using DataTransferManager.DataRequested and DataTransferManager.TargetApplicationChosen handlers.
I have Facebook web page and I am providing link to it by calling dataRequest.Data.SetWebLink(facebookWebpageUri) in my DataTransferManager.TargetApplicationChosen handlers when chosen app is "facebook".
The problem is that Facebook should scrap the webpage for the data it shows in the post as it does in my Android and iOS apps but in my Windows 10 UAP it does not do this. It only shows the title and the text set by dataRequest.Data.SetText if I provide it before invoking share using DataTransferManager.ShowShareUI()
There are two type of app for sharing Interaction: one is source app, the other one is target app.
As a share source(UWP) app, we handle the source data, for your scenario, the facebook is the share target.
What we can do is dealing with the data you want to share, which we have done already. As the target app, facebook need to be able to resolve this source data, this work can not be done by the source app.
What you can try to do is:
Contact with the facebook to submit a suggestion.
Use the web api of facebook.
Try to find and use some third-party libraries of WinRT.

facebook: preview News Feed stories created when publishing actions

I'm looking for a simple way to show the user some actions she has generated using my app.
It should look like the recent activity ticker displayed (RecentActivityUnit) in the timeline but only with some certain actions decided by the app and, most important, it should allow to remove the action (so activity feed plugin is not suitable)
First idea is to:
query opengraph to get desidered actions,
get related open graph objects
use facebook internationalization feature for displaying action.
Is it really what facebook does when it builds the activity log (or ) ?
Does anybody know a simpler way to do this ?
Unfortunately, this is the only way to do such a thing. If you know the Action IDs in advanced, you can skip the first step and simply search for the actions you need in Step 2.
Internationalization is only required if your site supports multiple languages. If it's for an app within Facebook, then this is recommended since users could be using your app in other languages.

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...

Where to begin with using Facebook's PHP SDK to create events?

I want to use Facebook's PHP SDK to create/update/cancel events on our Facebook Page, whenever they are added/modified/deleted within the "calendar of events" database table on our web site.
Where do I even begin with this? I have the SDK installed, but I am having a really hard time figuring out how to register my own custom app and install it to my Facebook user account. I did manage to get an App ID and App Secret, and I also created a minimal canvas and indicated which persmissions the app needs. But, for the life of me I can't figure out how to install the app on my FB user account.
I don't want to make the app available to others, and I don't even want to access it while I'm logged into Facebook. I just want to be able to do something like $fbapi->createEvent() within my own code on my own site.
Also, do I need to have an authenticated Facebook user session/cookie when calling the API to create the event? It seems to me that would eliminate the possibility of creating events via a command-line PHP cron job.
I feel like I am understanding bits and pieces of this, but there are gaps in my understanding and I'm not seeing how all the pieces fit together. Any direction would be immensely appreciated!
First play around with the Graph API Explorer https://developers.facebook.com/tools/explorer so you can understand better how the Graph is used. From there you can then learn about the PHP SDK http://developers.facebook.com/docs/reference/php and how to do the same things you did with the explorer tool. Events are here documented here: http://developers.facebook.com/docs/reference/api/event/

How to add a link (Like, comment) at the facebook app wall post

I have a Facebook application where I am using it in Windows phone 7 application.
I am done with share on Facebook option through my mobile application. I want to add an extra link at the bottom of my application wall post (beside the like and comment links present)
How can I achieve this? Which setting need to be set in the application settings?
The docs for integrating share functionality are at http://developers.facebook.com/docs/share.
However:
We don't recommend the Share button
for new developers. If you aren't
already using the Share button, we
recommend you migrate to the Like
button and Open Graph protocol instead
of Share for sharing pages from your
website. The Like button is simpler to
user and is the recommended solution
moving forward.
Because this is implemented in HTML & JS with Facebook's own scripts you'de need to look at usingt a WebBrowserr control to embed this funcitonality on your page.