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.
Related
I have like/share buttons on my website and am not currently using an appid. Finding information on whether this is a necessity for the above configuration is difficult to confirm. When going through the Facebook app "create" forms, I'm really confused by a lot of the requirements as it seems to be more focused around actual apps rather than websites, which login via fb etc.
In the past I have created an app for one of my other websites and I don't believe there was any verification/submission process at this point (about 2-3 years ago). Reviewing my old app configuration now I can see that it is not "live" - does anyone know whether Facebook implemented this submission process in the last couple of years, and then de-activated any live apps that were created prior to this?
I now want to setup a new app for my new website and I'm unsure what the different 'action types' mean and what I would need to simply use like/share buttons on the website. Could someone give me a quick run down of what I'd need and what they are?
Any other info/tips people can provide would be greatly appreciated. I'm finding that the like/share DO still work without the app, but sometimes the share button doesn't work properly (I have a feeling this is something to do with the app).
Thanks
If you are just using the Social Plugins, you don't need to have a Facebook App ID.
If you want more integration, it will be required. Creating an App ID is like registering your App, wether an iOS or Android App or just a website, so that you can make Graph API calls for it.
The easiest way to register your website is to go the quickstart: https://developers.facebook.com/quickstarts/?platform=web (or https://developers.facebook.com/apps). There you can type a name and follow the steps.
You can then follow the "Sharing best practices" (https://developers.facebook.com/docs/sharing/best-practices#tags) on how to use the App ID. For example, by including an fb:app_id meta tag on your pages.
There is a review process, since last April, but that is only needed if you use permissions for your App. If you just use the plugins, that is not needed.
Can you explain more what is exactly not working?
Update
The time you create a page the Facebook crawler does not know yet what the Opengraph data for that one is. This will happen after the first share, but if you want to ensure it is correct from the first share on, you can force a re-scrape.
This section explains how that works:
https://developers.facebook.com/docs/sharing/opengraph/using-objects#update
When an app triggers a scrape using an API endpoint This Graph API
endpoint is simply a call to:
POST /?id={object-instance-id or object-url}&scrape=true
Does anyone know how these kind of functionality can be implemented?
How can we get PlayNow kind of link ( I want to add my own custom link at that place)
How to get user images on this kind of aggregation.
As far as I can tell, this is a custom implementation from Facebook that you cannot control. Facebook provides custom aggregation on the newsfeed for certain popular actions, such as playing games, reading news or watching videos. As you can see in the aggregation you have posted, each app is different.
When a certain set of users read news using your app, and Facebook chooses to display an aggregation of "X and y more friends recently read articles" on those users' friends' news feeds, your app might come in that aggregation. The "read now" button comes on its own, since Facebook understands what your object is.
The aggregations you can control are those that consist of only your app, and you can do that in the Open Graph panel for your app on the Developer site. Just go into aggregations and design it to your choice. This is how I implemented it for myself:
This is how it would look like in a user's Home Feed. The text, "Share your twocents about Dil Chahta hain..." can be set up according to your requirements.
Secondly, you can control the aggregation for your own app on a user's timeline. This is how my app's aggregation looks on a user's timeline. Do note that currently, only two aggregations are shown for a user, instead of 3 as is displayed in my image (which was taken prior to the approval stage).
That is an aggregation that facebook is making for a specific type of applications: Games.
You can set your app as a Game in the app settings, first tab (Basic) first section (Basic Info) in the Category field.
If you do that then facebook should include your "game" when they aggregate this feed story to friends.
If you do that how ever then you can't change the text from "Play Now", as far as I'm aware.
Using the open graph you can define the obejcts which your app uses and the actions users do on them.
Then you can control how the stories produced by your app are aggregated into the timeline of a user.
The official guide is pretty straight forward and have good examples that you can follow to understand how things work.
If you have a more specific question regarding the open graph then ask away.
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...
Does anyone know what this functionality is called and how it can be implemented? I do not have any of these apps added to my Facebook account but every so often I get what's shown in the screenshot in my newsfeed. This is a great way to get click-through's into an application.
UPDATE
A lot of content-delivery sites have this functionality e.g. news sites, and even Pinterest now. See:
The Apps and Games "app" is made by Facebook and has access to functionality not (yet) available to regular 3rd party developers.
The closest thing we can do is aggregation reports: http://developers.facebook.com/docs/opengraph/define-units/
Update
The Pintrest report looks more like what can be done by us mere mortals.
See for example this report from an app that I made:
(source: jocke.syk.se)
Here's what the action settings looks like:
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/