Does facebook open graph's fb:explicitly_shared require approval even for developer? - facebook

fb:explicitly_shared=true, image[0][user_generated]=true, I expected the action to display with a full size image in timeline and a small story in activity feed. Instead, I get only the small (with the smallest thumbnail possible) in the activity feed. Nothing in timeline.
The documentation is unclear. Documentation states regarding user_generated:
While it might seem appealing to always use user_generated photos, there are some criteria that must be met in order to maintain a good user experience, and for your app to get approved for the capability to be used by people who are not developers or testers of the app
This does not specify whether 1) The POST to /me/namespace:action will succeed without error for the developers but still not display in the timeline or 2) The POST to /me/namespace:action should behave in every way as if "User Generated" was approved (for posts on behalf of the developers)
I have the same question about fb:explicitly_shared. Cannot determine whether behavior is unexpected because expected behavior isn't clear in documentation.
Following all examples documented with variations on what is in the meta tags and the data posted to /me/namespace:action there is simply no way for me to get anything to show up in the timeline (aside from posting directly to feed).

Do not test any of these things with the Graph API Explorer. The Graph API Explorer appears to be partially sandboxed in it's own special way.

Related

Sending requests to facebook as a user from a third-party app

I need to initiate searches on facebook marketplace from my application on the user's device. This needs to happen on the user's device, and as the facebook user associated with the user using the application, to avoid getting blocked by facebook. As far as I can understand, this cannot be achieved using facebook's OAuth login and accessing the facebook information that is accessible through it.
Another hypothetical way that comes to mind, is to use the token that the user uses to login into facebook itself, though this one sounds frankly illegal.
tl;dr is there a way to run a search and retrieve the results on facebook marketplace as a user on a user's device?
I found your question on SO, and spent a good bit of time researching this, as I wanted to know the answer myself. Unfortunately, as best as I can tell, this is not possible through any official APIs. It seems like they may have once had something like this, as I found several links to FB API documentation that looked promising. But, the links all rerouted back to the Graph API homepage. I found a couple of references to the big data breaches FB has suffered in the last couple of years as possible reasons why their APIs were retooled and locked down.
I found several Facebook developer posts with questions about a Marketplace API where there were either no answers after months or years, or an official Facebook moderator posting a response like "This is a great idea, we always want to improve, use this form to submit your idea" and so on with no follow up.
I also found at least one SO post within the last 18 months where someone in the comments claimed to be able to post products to FB, but I think this was related to the Business Page Product Catalog, and is not what you're looking for. This is more like if a car dealership or something wants to post a new car for sale that's tied to their FB business page.
The Graph API allows for some decent searching and edge traversal but it is all related to posts, pictures, feeds, etc., and nothing related to the marketplace. Facebook pushes their Marketing APIs so heavily that it was tough to filter through that noise. And, of course, all of marketing apis are geared toward creating ads.
I found some Facebook information around API URLs looking like https://graph.facebook.com/search=terms&type=some_type that was very promising. But the type options seem to be limited to adcountry, adeducationschool, adeducationmajor, adlocale, adworkemployer, adkeyword, adzipcode, adgeolocation, and audienceinterest. And, as I dug deeper, it appears this is related to finding targeting groups for creating targeted posts. Nothing for marketplace.
I think that the answer, unfortunately, is that there are no offical FB APIs at this time that will allow querying search results from the Facebook Marketplace, much less provide enough information to reproduce a listing to display on a 3rd party app.

Facebook Graph API insights

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.

With the "user_status" Facebook permission, can I make an app to show the user their personality?

I have an app that analyzes text comments and figures out the personality out of it. I'd like to integrate Facebook in it, but when checking the user_status permission, I read:
(OK) Provide creative content from status updates.
(OK) Provide value to the user by visibly analyzing the content of their past statuses.
(Not OK) Non-visible use of this data such as sentiment analysis or
guarding against spam bots.
The app will show the user their personality. It analyzes the content of their past statuses and provide value to the person, they know something more about their personality and, depending on which category they fall, they will see a picture and a brief description of it.
I'm not sure about the last point, does my work count as doing "sentiment analysis"? The use of this data is completely shown to the user.
I was wondering this because I couldn't find any app that do this after the recent changes of last April in Facebook.
Since to request the permission Facebook wants to see everything in action, knowing this is not permitted at all in advance will save me some coding.
Thank you!
Not sure how to properly answer my own question, with the answer coming from another website, but I got a very kind feedback from David Doyle on the "Facebook Developer Community" group on Facebook.
We see a lot of apps that do or claim to do similar to what you're looking for. Permissions can be approved in these cases if the content is clearly influenced by the information a permission provides, is clearly visible to people using the app and results vary based on the information provided.
Where some apps might fall down with requests like this is claiming "the answer is custom based on your user_status" but in reality, the answers are always the same - or there's a core set of answers that are rotated and the information provided from login are never used in the app.
Hope this makes things a bit clearer!
Then he added
What I mean by clear visibility is that if I'm a person signing into your app I should know why you're asking me for user_status.
When I get my result, I should know how my status information contributed to it.
Permalink to the discussion, if you're in the Facebook group: link

Is it possible to access insights data on a particular Open Graph story via one of the Facebook APIs?

Given an Open Graph story ID, is it possible to read insights Impression and Referral data on the story via any of the Facebook APIs?
A thorough review of the API documentation suggests it's not (but FB's API docs can get out of date) and previous SO questions have not been promising (but none of the answers seem definitive and anyway times change). Something like the following seems like a reasonable guess for where they might be available:
https://graph.facebook.com/[og_story_id]/insights
Testing queries along those lines does not error, but also hasn't turned up any real data.
As a addendum and potential hack, is it possible to access the comment or like count for an Open Graph story?
It is not possible to update the existing isight using the endpoint the only it allow only the get request post and put is not allowed for this end point

How to enable comments and likes for my posts made with my Facebook app?

When my Facebook app posts to the users stream those posts do not get links for Like and Comment. Other Facebook publishing apps, like Instagram, get these links.
I can't find it in my Facebook application's settings. Anyone knows how to do it?
(I think this is the same question as this one: Facebook : Like and Comment Functionality against Wall Post but I'm not sure.)
See Traroth's comment to get a more to the point description of what it is I'm asking about.
It seems Nathat Totten is right about how these links are defaults and that they are controlled by Facebook. There are three things that confuses this issue.
One is that Facebook Test Users behave a bit more special than you might think. Even when they are friends, they are not fully so. Making these default links turn up only for the user that posts them (for Test Users, mind you, I'm hoping it'll work all right for real users).
Another is the documentation for actions in the Facebook Graph API documentation for publishing Post objects:
A list of available actions on the post (including commenting, liking, and an optional app-specified action). read_stream. A list of JSON objects containing the 'name' and 'link'.
Which made me start to try find out how to include the commenting and liking links myself. I can't find this info anywhere, so maybe that changed without the above quoted documentation reflecting the change.
Anyway, if, indeed this is a Test User issue, then I don't need to do anything special to fix this. I'll try to remember to come back here when my (iPhone) app is ready for the real Facebook world and I get to see if it works in that environment or not.