In a Facebook Timeline App, so a facebook app that use OG 2.0,
I want to display the number of users that read the article like this: "Read by 115 people".
And i want to get all possible information about my article (object).
Thanks.
Related
I'm developing an app for iPhone(ios5), where I need the information of the posts I made highlighted in my facebook profile. Using facebook-graph api its possible to get all the data of user profile but is there any way I can get highlighted posts data ? For example I want to count and keep track of how many posts I highlighted in fb timeline.
You can use [pageid]?fields=posts.fields(timeline_visibility)
Each highlighted post will have timeline_visibility set to "starred"
Our FB app creates Actions that get sent to users' Friends via notifications.
Those friends can comment on the Action, within the notification on their Facebook feed.
Our app is also using Facebook comments social plug-in to allow people to comment on the "same" post within our app, with those comments associated with a url (as per the FB schema).
We obviously want to combine the facebook feed comments on the "Action" and our app's (FB social plug-in) comments into one, on our app.
The problem is that Actions do not have a URL we can associate the comments social plug-in to (and there is a bug, open from November, preventing a work around https://developers.facebook.com/bugs/164794086987157).
Any ideas on how to combine these two comment streams?
Thanks!
Looking at these 2 articles:
Like: https://developers.facebook.com/blog/post/465/
You can publish stories to people who like your Open Graph Page the same way you write a Facebook post from your own wall. The stories appear in the News Feeds of people who have clicked the Like button on the Open Graph Page.
You can also publish using our API. If you associate your Open Graph Page with a Facebook app using the fb:app_id meta tag, you can publish updates to the users who have liked your pages via the Graph API.
Follow: https://developers.facebook.com/docs/opengraph/actions/builtin/follows/
Similar to the ability to subscribe to a user's posts on Facebook, users can now follow other users' Open Graph activities from a specific app. For example, on a movie review site, users can follow their favorite movie reviewers. When a user follows another user in your app, all of the content published in your app by the publisher is eligible to be displayed in the follower's News Feed even if they are not Facebook friends (as long as the privacy on the actions published allows the follower to see the post):
It appears that in both cases you can create an Open Graph object that lives outside of facebook and either "follow" or "like" it. Using one example provided in the articles you could for example make that object be
http//www.rottentomatoes.com/celebrity/tom_hanks/
If you decide to "like" Tom Hanks on the site, the page can publish news about Tom Hanks and they will show up in your News feed. (Assuming all permissions are ok, no worries there).
However if you decide to "follow" Tom Hanks on the site, if I understand correctly the requirements posted by facebook:
In this case, the document returned by fetching the URL should have an fb:profile_id meta tag which represents the Facebook ID of the user:
<meta property="fb:profile_id" content="lbRw_a8fwsz8u7a_-iL5bCxjJ8w" />
We recommend that the content of this field be the third_party_id of a user, which can be retrieved by adding ?fields=third_party_id to the request URL when retrieving the user's information, and described in the documentation for the Graph API User object.
This tag is not required, and follow actions will succeed without it, though followers will not see activity in their News Feeds without this.
since the page lives outside of Facebook, it won't have a third_party_id and therefore if the site publishes news about Tom Hanks, you will not see that news appear in your News Feed.
Is there any reason why things behave like this?
Similar to Like, Follow publishes a single story initially. Follow however allows an app to build a "subscribe" relationship between two facebook users in the context of your app. Consider the example below which also illustrates how third_party_id is used to create such a relationship:
Lets say William followed Claudette in your app and that your app successfully published a follow action on facebook. Whether you provide Claudette's third_party_id or not, a story that William followed Claudette, will get published on William's News Feed.
However if Claudette's third_party_id is provided, then William will start getting stories about ALL of Claudette's actions published by your app. Now, thats pretty cool. But of course to do this, Facebook needs to know "who Claudette is" which is what third_party_id does.
To summarize, by not providing third_party_id the follow action gets shared on William's news feed and potentially to William's friends. But thats a one time thing. By providing the third_party_id you are extending the virality and ensuring a constant flow from Claudette to William for actions Claudette does on your app.
I have a news application that has Opengraph integrated and actions approved like read and watch.
I want to list all articles, videos etc that friends of a visiting user have read, watched on my application.
How do I go about doing this? Something similar to what Yahoo have done in their news page where a list of my friends who used the app show on top and onhover the articles they read shows up. Washington post also does it.
Use the Activity Feed plugin: https://developers.facebook.com/docs/reference/plugins/activity/
If you don't want to use a plugin, you'll have to handle all the logging and building the query on your own site - this is what Washington Post do.
I have a very basic website with the potential for having hundreds of pages, and would like to have a the Facebook Like button on each one.
However, before I do it, I would like to know the difference between inserting the Like button with, or WITHOUT using Open Graph META tags.
I don't want each page that visitors 'Like' to become their own Facebook pages, but I WOULD like their 'Like' to show up on their wall so their friends can see it.
Is the only real reason for using Open Graph to specify what exactly it is that you want to show up in the message and 'Like' post?? (example: 'Dave likes The Rock - IMDB' with a picture of the movie and a description underneath.)
#Vali What you are suggesting:-
Including Open Graph tags on your Web page, makes your page equivalent to a Facebook Page. This means when a user clicks a Like button on your page, a connection is made between your page and the user. Your page will appear in the "Likes and Interests" section of the user's profile, and you have the ability to publish updates to the user.
is not possible. Kindly see my similar question:
Convert my Site to Facebook Graph Object
As you said you can add a Like button without OpenGraph. That's the easy way and with that you don't have any future connection with the person who liked your link/page.
Including Open Graph tags on your Web page, makes your page equivalent to a Facebook Page. This means when a user clicks a Like button on your page, a connection is made between your page and the user. Your page will appear in the "Likes and Interests" section of the user's profile, and you have the ability to publish updates to the user.
Using Open Graph you have a greater control on what you want to appear on that person's wall.
Open Graph is still beta. If you want to use OpenGraph you need to create a FB app, get the APP ID and add it to your webpage. If you want to use the simple Like button, you just add the fb:like tag and that's all.
don't want each page that visitors 'Like' to become their own Facebook pages
This will not happen. You're the single admin of your page.
Is the only real reason for using Open Graph to specify what exactly it is that you want to show up in the message and 'Like' post??
Yes, you can do this with Open Graph. I suggest using Open Graph if you want to post enhanced wall posts and if you want to get connected with the users who likes your page.