Facebook Insight data not appearing for website - facebook

I have recently been looking into adding Facebook Insights into one of our client's websites (www.mcvuk.com). I've created an app to associate with this and added the necessary Facebook meta tags to my site which reference the app id.
I was, until today, having issues adding the app domain information to https://developers.facebook.com/apps but have added this information in today.
My question is how long does it take before you will start to see results filter through for the site and is there any way of checking that everything has been set up correctly?

It might not be a matter of time, it might be a matter of how many 'likes' the app or page has. At least for pages, it tells you "Once 30 people like your Page, you'll get access to insights about your activity."

That's an interesting point.
It all depends on which metrics (results) you're after and how much traffic your app gets.
Additionally, you might want to look at facebook documentation for the metrics (results) you're looking for -- some of them are available monthly or weekly, others are a lifetime aggregate, and some are daily.
The easiest way to test would be to ask some of your friends to do whatever it is you want to test (comment on a post, link to a page, etc.).
I hope that answers some of your questions.

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

New app not available in list for "insights for your website"

I created a new app last week with the purpose of using Facebook insights for our website, but it is not available in the list to make the connection with. Do I need to do anything to make the app selectable?
For any of you people who think this question is not technical and shouldn't be here, I was directed here from Facebook bugs because it's not a bug.
I have had the same issue but after a bit of experimenting I found that it does not affect the ability for you to claim a domain and associate it with an app.
What the drop down list does is generate the code snippet shown below. I'm guessing this was useful when you was able to link it to a page_id (you can no longer do this). As long as you have put the correct meta tag (such as that below, replacing %%app_id%% with the app_id given by the Facebook App Center) you are free to ignore what account is shown in the drop down.
<meta property='fb:app_id' content='%%app_id%%'/>
Once you have linked the account you can go back to the Facebook App Center and set permission on the account.
Tip: While you can only give other verified developers Manager access to the app you can add any friend or email address to the insights level of access which is all which they need.
Not sure if this is the case here. But I do know that there is a threshold to see insights with regard to pages.
As detailed here in the FAQ's -
Is there a minimum number of users to see Insights for Pages? Yes. For
user privacy reasons, Insights are only provided to Pages with greater
than 30 users who like that Page.
Perhaps there is a limit for domain insights too. You should allow some time and some traffic pass before the insights start being able to give feedback...
I had the same error, I tried to debug my site here FB Debugger
which is the official debugger you can input URL, Access Token, or Open Graph Action ID.
It works for me.

Policy query - iframe app posting to multiple (5) friends wall

After some advice.
I have a client wishing to have an app which lets them download a voucher to redeem in store but only after they post details of this offer onto 5 friends' walls.
My understanding of current Facebook policy suggests that:
1) Promotions can't require users to take any action on Facebook other than to like the page (likegate);
2) Messages posted to multiple friends at once should be unique and personally initiated - i.e. an app shouldn't bulk post to multiple users. Instead users should share things on their own wall....
Am I correct in this understanding?
If so, can anyone point me at the relevant facebook policies - can't seem to find them on the site.
Yes, those are exactly what I read on the policies page. However to be absolutely sure, you should have your corporate attorney read them and consult with you.
See
http://developers.facebook.com/policy/
and
http://www.facebook.com/promotions_guidelines.php