I have a simple question for Facebook developers. I would like to create website which would collect and embed some specific data from Facebook. For example, let's say I want facebook's posts or images with the most likes on a daily basis. Here's what I think:
Let's say there are x pages that I follow on Facebook. So at the beginning of each day or at some point I would like to loop through the posts of these pages and get the most popular posts/images.
Is this possible to embed to website? I am relatively newbie to facebook development.
I look forward to seeing your answers!
Kind Regards!
You can embed a specific post with https://developers.facebook.com/docs/plugins/embedded-posts. The specific nature of your question is not possible though.
Related
I'm new on working with Facebook and honestly I found it very confusing, terminology and documentation seems to be very ambiguous in many cases. Can somebody please help me out with a plain english explanation on how I can achive the following?
Post and image to Facebook (on the user page) and then check the stats (insights) of that post.
Till now I have managed to:
1) Create an app
2) Post the image on the user page with the desired message
I'm not able to understand how I can retrieve information about the particular image which was uploaded through my app. I want to know how many people have viewed that image, how many likes did it get, how many times it was re-shared.
Is it possible at all?
I'm posting to /photo not too /feed and I will like to keep it this way if it is possible.
Sorry if this was answered already but I spent a few hours trying to find an appropriate answer but wasn't able to get the right documentation.
UPDATE 1
After having a couple of days off from this topic and receiving the first 2 answers, I took another dive into this. Now I have tried the Graph API Explorer as suggested, and using the ID of a POST I can get some details about the POST, but the insights aren't showing anything, just next and previous.
My goal is to be able to gatther some stats about the pictures uploaded through the app. If this is not possible directly what should be the approach I need to take?
I don't believe a personal /photo has /insights attached to it - the Insights Object documentation page suggests that they do not - but you should be able to get likes, shares, and comments via the API.
It would appear FB has launched a redesign/reorganization of its documentation in the last couple of weeks, but the documentation for the /photo graph object is here -- you will need the user's Access Token, and the API endpoints you're looking for each have links to their own documentation pages there, including example code for each type of request.
Edit (summarizing discussion in comments):
There is no method via the Facebook API to gather insights for all photos posted to individual user timelines via an app. The app can gather likes, shares, and comments for each of those objects individually via API requests, and can make API requests for insights for photos posted to its own timeline. Neither of those options solves the intended use case here.
I'd recommend a solution that uses Sharing rather than an app integration, as this allows for better access to insights on the photos being shared. This is also a much simpler integration, and less brittle wrt future Platform changes. The main tradeoff is that the original photos being shared are expected to expire after a couple of months -- if this is unavoidable, I'd suggest implementing a redirect for requests for expired objects on the site.
We are able to get different kind of photos or picture Using Graph API
like as below:
1.Page Photos
Photos for a Facebook Page.A Page Access Token is required for all methods.Find here
2.Page Picture
Picture belonging to a Facebook Page. Find here
3.Photo
Represents an individual photo on Facebook. Find here
4.User Photos
Photos for a person.Find here
I hope it's helps you.
I want to embed a stream of facebook posts onto a web page that is comprised of posts all around facebook containing a specific hash tag, but I'm not quite sure how to go about it. I had to do the same with twitter and instagram, but those were all fairly easy to accomplish. I'm just kind of looking for the best option right now, not so much on specifics. I've seen a couple of times the graph api for facebook as an option, but every time I see those they seem to be from a year ago, so not sure if it's out of date or if there is a better option out by now. Any recommendations on ways to go about it would be greatly appreciated.
See my answer here on how you can use the Search API for hashtags:
Need help on employing Graph Search parameters for hashtag query on facebook
Basically, you can call
https://graph.facebook.com/search?q=%23selfie&type=post&access_token={user_access_token}
Be aware that you have to use v1.0 of the Graph API, because in v2.0 searching for public posts will no longer be possible (https://developers.facebook.com/docs/apps/upgrading#upgrading_v2_0_graph_api):
Public post search is no longer available.
(/search?type=post&q=foobar)
Graph API v1.0 will only be available until 30th of April, 2015.
firstly please forgive me if these is a repeat question, i have looked through the website trying to find similar threads and they didnt exactly answer my question.
my delema is the following, i just wanted to know if it is possible to create a facebook Tab, have for example five products and under this have a button or a feature which allowed users to send this product to a particular friend's WALL with a comment that they can write.
I know there is the share functionality and you can manually tag the post/item i also know of the send functionality which posts a private message.
is there anyway of having this to the wall.?
Just browsing the API and I'm a bit unclear on this. I'll need to dig more to figure it out, but I wanted to know if anyone else out there has done this. Seems like Facebook Groups mimic bulletin boards but are more robust. I'd like to at least be able to synchronize comments and import group posts perhaps under something like TOPIC >> FACEBOOK POSTS. Would be a huge win for the dying world of bulletin boards to piggyback on a Facebook sync so that people can post in the FB group and have others receive notifications while some kind of implementation of the Facebook Realtime Updates API. Imports new posts from the Facebook page so that new users or those not on Facebook can also participate in the discussion. The tough part of course would be synchronizing the respective post ID's and their comments on the forum <--> Facebook.
Has this been done, and more importantly is it allowed? Does it violate Facebook terms & conditions?
Looks like my inquiry is pretty similar to this one
Get data from a facebook page wall or group wall for use on personal website
Just in case I don't get a better answer and someone else finds this question...
We want users to be able to post to their Facebook if they want to. We have it kind of working with the older Facebook profile but not with the new Timeline.
We want it to be like Tumblr where you can post/share to your Facebook account as much as you want.
Is there a limit of post that we can have a day per users or the via entire API in general?
We are using FB connect already of course!
The documentation for Facebook's Open Graph is probably the best place to start. Take a look at their best practices page, as well:
If your application is making too many calls, the API server might rate limit you automatically, returning an "API_EC_TOO_MANY_CALLS" error.