Alice posts an item on her timeline. Bob shares it on his page. Carol shares Bob's share. Is there any way in Graph API that I can work out that Carol's share came through Bob?
Just to close this off, #Shrink is right, it seems to have been possible in the original Graph API but that has been closed off now.
Related
I am trying to implement a feature in my app using Facebook's Mention Tagging API. Most articles online reference the blog post here, which then links to a broken documentation link. I am wondering if this is even possible, as I cannot find any resources on this.
In my app, let's say I have the proper OAuth tokens for the user with all permissions enabled. Let's also I also went through Facebook's approval flow for my app and it has been approved to use this.
The user has 3 Facebook friends, John Smith, Johnathan White, and Joe Roberts.
Within my app, the user types "#Jo" and an autocomplete dropdown list will appear:
John Smith
Johnathan White
Joe Roberts
When the user types "#Joh", this dropdown list will appear:
John Smith
Johnathan White
The user will select John Smith from my app's dropdown menu and publish the post to Facebook. From Facebook, John Smith will be mentioned and the text will link to John Smith's Facebook page.
Now I already know how to retrieve ALL of my friends via taggable_friends API (step 2). I also know how to publish to facebook (step 4). The issue is step 3, as I cannot find any resources on how to implement this.
Is there a Graph API endpoint or an Open Graph concept that allows me to mimic Facebook's autocomplete tagging feature? Looking for something where I am making a separate HTTP request for each letter being typed. I also cannot store a user's friends list into my application's persistent storage.
Is this even possible or is this concept deprecated? Would really appreciate just some pointers to the right direction. Thanks in advance.
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 have a business page on Facebook. I want to see when someone tags my page on their feed in a public post. Further, I want to be able to see the comments that people make on that post. About 3 weeks ago I had no problem doing this. I could then use the Graph API and Graph Explorer to see the:
/tagged?fields=message,from,created_time,likes,comments{from,message,created_time}
....a great deal of information.
Today when I try to access the likes or comments on the tagged post through Graph Explorer I get the greyed out text meaning "Field is empty or disallowed with my access token." However, I have the page access token via Graph Explorer. Can anyone help me with this? Did Facebook change something?
This is not the same as the linked post. I have tested it with all user and extended permissions enabled. I am not trying to see a list of my friends, I am trying to see the name and comment of a friend of someone that tagged my page. The code I posted above worked fine less than a month ago, which was still Graph v2.5.
Each of these has likes and comments yet the API won't allow access.
I have a game site, and I want to make POST TO Facebook from my game site.
I've looked around and all i can find is that you can share links.
But I want my button to post something like "I just killed John Smith in Blahblahland".
How can I do this?
Use the Graph API and POST a Post object to the feed connection of the User object.
Or there is stream.publish but heard its gonna be depreciated soon.
This link might Help You. LINK
you nee to look around Open Graph story.
http://developers.facebook.com/docs/bestpractices/creating-actions-objects/
Using the graph api,
graph.facebook.com/me/feed returns all my status updates and posts made by me.
Is there any way to get the wall posts made by me, for example, if I posted on John Doe and Jane Smith's walls, is there an api endpoint that would return those posts, or at least, return the names/ids of the people whose walls I posted on?