Facebook API - FQL url_like table behaving strangely for some users, not returning all URLs liked - facebook

I am writing a facebook API based app and I ran into a few complications with the URL_like table in FQL with certain facebook accounts
If I run the following query, I expect to get back a list of URLS including web pages on which I have clicked the "like" button:
https://graph.facebook.com/fql?q=SELECT+url+FROM+url_like+WHERE+user_id=me()&access_token=TOKEN
However, on my own personal facebook account (the same one I registered the app with), when I run the query, the URLs that show up are only URLs i liked "inside" facebook - URLs that were posted on my wall, or other peoples walls, but not urls that I visited and clicked the "like" button on.
At first I thought this was an issue with account or privacy settings. I adjusted the settings on my facebook account to match the exact settings that my friend had on his facebook account which showed the correct results of the FQL query, but it still gave me the result above.
I deleted the app from the list of approved apps, approved it again, thinking this would change the result with a different access token, but it has not.
Also - this functionality worked correctly on my facebook account before, which makes the predicament even stranger
So here is the question - does anyone know why only certain URLs show up in the URL_like table? was there a change in the facebook API to justify this? Can this error be repeated? Or is my profile just some sort of super glitch?
Thanks in advance, I am at my wits end with this

Related

How does Amazon ask for so many permissions on Facebook on one screen?

I'm working on a Facebook app that requires a few basic permissions (email, birthday, etc) as well as publish_actions (so I can create stories about user interaction).
When I ask for these permissions, the end user is presented with one screen for the basic permissions and yet another for the publish_actions permission.
However, when I looked at the following app from Amazon:
http://www.amazon.co.uk/gp/socialmedia/promotions/SprngSweep
When I click on the enter button, I am redirected to Facebook to ask for permissions (as expected), however, they have all their permissions one page (Amazon would like to access your public profile, friend list, email address, birthday, photos, videos, personal description, likes and your friends' birthdays and likes. Amazon would like to post on your behalf. Amazon would like to access your data at any time.)
I can't add a picture due to lack of rep
The url that I'm redirect to is this:
https://www.facebook.com/dialog/oauth?client_id=164734381262&redirect_uri=https%3A%2F%2Fwww.amazon.co.uk%2Fgp%2Fsocialmedia%2Ffbr%2Fconnect-handler.html%2Fref%3Dfbr_hn_SprngSweep%3Fie%3DUTF8%26appName%3DAmazon%26externalApp%3DKindle%26onSuccess%3D%252Fgp%252Fsocialmedia%252Fpromotions%252FSprngSweep%253Fie%253DUTF8%2526sm-sweeps_submit%253D1%2526sm-sweeps_submit.x%253D66%2526sm-sweeps_submit.y%253D20%2526sweepsConnect%253D1%2526sweepsEligibility%253D1%26ref%3DSprngSweep%26token%3D6CBF36BD25311891B2F205333EFA3AA78E561AB9&scope=
While attempting to investigate this myself, I noticed that they aren't even passing a value for scope in the url.
How the hell are they doing this?
Most likely they are using an old API (FB changed the behavior over there recently, read their blogs please) or they are using hidden features which FB created for them (as this has an impact on there advertising revenue obviously, and even these guys are "coin operated").
The "two pager" is normal, FB API and FB advertising API quit the same. I wouldn't worry.

Correlating users who "like" a page with users of an app

I have a page that links to my app. and this page has an increasing number of "likes".
We want to know how many of the FB users who have "liked" our page have authorized our app.
Per Querying Users who 'like' my Facebook Page, it doesn't appear that I can get the list of "likers" of my page in order to correlate the FB ids against my user base for the app.
Two questions:
1) Is there an existing Insights metric that I should be using to get this information? This does seem like a special kind of "conversion" (from page - liker to app - user).
2) The only other option I see is scraping the output of
https://www.facebook.com/browse?type=page_fans&page_id=PAGE_ID
which some have suggested violates the FB TOS (why is that, btw?). Does anyone have any other suggestions?
3) Upon further reflection, it occurs to me that I can come at this problem from the app instead. I should be able to get likes for my app users and see if my page is among them. Can anyone verify if this will work?
Many thanks,
Wes
No, you'd need to manually calculate this by using the user's access token when they're using your app to see if they like the page - Facebook's API will not give you a list of users of your app or a list of likers of a page

facebook api get friends likes returns empty array for some friends

i tried this with fql and the test console
https://developers.facebook.com/tools/explorer
checked the permissions
check with two accounts (no privacy issues)
checked the fb bugreports
clicking on friends then a user id then likes returns an empty array on some of my friends. i couldnt figure out why this is the case.
it seems to be pretty random but maybe i overlooked something
can someone help me on this?
If some person means Your app works fine for facebook developer account and other accounts not - check on You facebook developer account Status & review if Your app is On for public and not blocked for review.

Starting with facebook app (need guidelines)

i'm trying to make a facebook app, to make draws (like raffles) between the users who like my fan page, or eventually who likes a post.
I've been developing another app which do other stuff, but i'm stuck with this and it's really frustrating to not be able to do something so simple as this.
In the first place, i wish to make it available in a page tab (and that users doesn't need to "install" the app. Maybe this isn't needed if the user is just "looking" at a page that is loaded in my hosting)
Second, i don't know how could i get (assuming the one who enters the app/page tab is an admin) all the users who liked the page/post without using an access_token (because this damn access_token has an expiration time, and if i could, i'd try not to use an access token at all, since i assume the user who gets in into some parts is an admin
Any ideas?
You can't make an app that draws a contest winner from the people who like your page. Facebook does not allow you to query the fans of your pages anymore.
You can still query the users who like a post on your page though so you should set your contest up this way.
To get started, you'll need to create a connector app for your page. Users don't need to register for this app. As long as they like your page, your app will be able to access their public data. Your app will have an API key and secret. Using these, you'll be able to access information about your page.
To find a user who liked a post, you can query this with a variety of languages. I'm not sure which one you are using, so I'll give you instructions to do this from the Graph API Explorer: https://developers.facebook.com/tools/explorer
Make your post on a page, and type PAGE_ID_OR_USERNAME/feed where you replace PAGE_ID_OR_USERNAME with your page's id or username. Find the id of the post you just listed in there. It will look something like this: 213365490637345_40261112079719 (not a real post_id)
Now you can get all the user ids of people who liked that post by typing this into the explorer box:
fql?q=SELECT user_id FROM like WHERE post_id = "213365490637345_40261112079719"
And then choose a random id from that list and contact that particular user. You may have to use Facebook as your page when you try to contact them.

Which app do I need to display facebook feed?

I need to display the "wall posts" from Facebook page to another website's social media wall.
The problem is that I never used neither Facebook nor any other social networks and got no clues on how do they work. That's why I'm pretty confused with API and it's terms.
The API docs say that I need a pageId for the page I'd like to display and appId and appSecret to get an access token to the feed.
I understand how to get the token and how to parse the results - but what kind of Application do I need for that? Should I create a facebook profile and make an application that would generate me these app codes? Or ask a page's owner to do it?
I spent quite a time googling but it must be something too obvious to write about it in docs? Help please?
The administrator of the facebook page is the only one that has access to the posts on the page wall.
For the APP:
The application can be created in any facebook verified account - go to: https://developers.facebook.com/apps and create the new app - this will give you the app id and secret.
Use the Facebook SDK that you feel most comfortable with to develop the app.
For the wall posts: There are several Graph API requests for wall posts in the form of:
https://graph.facebook.com/[pageid]/[call] where [call] can be posts, statuses, feed, home. See http://facebook.stackoverflow.com/questions/6214535/what-is-the-difference-between-feed-posts-and-statuses-in-facebook-graph-api for details about each.
Using an access token (that you said you already know how to get) the administrator of the page will be able to call the above URLs and get the wall posts.
For the part with posting the info on another social media website you have to specify the exact environment where you want the wall posts to end up.