FQL for getting photos from profile pictures suddenly stopped working - facebook-fql

My app used to get a list photos from Profile Pictures of friends with this FQL:
SELECT owner, src_big FROM photo
WHERE aid IN (
SELECT aid FROM album
WHERE name="Profile Pictures"
AND owner IN (XXXXXX,YYYYYYY,ZZZZZZZZ))
But now the response is only few photos from ZZZZZ (the last one). Even not all of them are returned.
If I try to delete YYYY,ZZZZ in the list, it works fine, even I'm using IN operator, it returns me all profile pictures of that friend.
Am I missing something ?
Another dev friend of mine tried it too, without success.
Could you guys please try it too in explorer? :)
Thanks!

I rolled out an App, which went viral, like which grabbed 40k users in couple hours. First it started to not give the profile pics at random times. Then it never worked.
I tried debugging, and caught the errors, and I get 403 when I try to access the pictures.
I assume it is intentional by the FB, or working in a way their 'Spam detection' algorithm would react. Because everytime It happened for me, I soon had an 'App Restriction'.
As a fix, I would say check if your codes are fine and is not making unauthorized calls to Facebook.You wont probably see any errors from the user end, but checkout the error_log to see if something's wrong. And make sure you stick to the FB Policies.
My answer may look vague, but it is out of experience. And if its a bug, instead of a spam prevention feature, then I am sorry :)

Related

Facebook Not Scraping URL Properly (Blocked URL) On Fresh URL's

I have started to experience a really strange problem with Facebook link scraping/caching which seems random in nature.
On brand new posts when I go to check: https://developers.facebook.com/tools/debug/ with my new URL I get a message saying 'Cannot scrape: URL blocked'
We have literally been sharing URL's to Facebook for YEARS with no problem whatsoever. All open graph tags are present and working fine.
What is really weird is if I just manually press the 'scrape again' button it grabs all the bits properly and says everything is fine. It's always just the first attempt.
I have also tried manually calling the scrap API instead of letting Facebook do it when someone shares the URL for the first time and still sometimes (not always) it returns empty (just 'id' and 'url' returned) indicating the URL was blocked.
What's going on here it's driving me mad? We are nowhere near our API limits if maybe that was the issue...
Why would it say blocked first go on the debug page then literally 2 seconds later you press 'scrape again' and it works fine.
Just to note sometimes when it says blocked it still shows maybe the image in the link preview but no title or description. It's like it's grabbed some tags but then given up. Very strange...
I have checked our access logs and I can see 'Facebot' accessing our site fine.
Hope someone can help, I am really hoping this is some weird Facebook bug as I can't see any change in our code base that would effect this.
Facebook does not return anything helpful when this happens even with the API. I have no way in contacting Facebook direct either. If we are somehow getting blocked I would love to know why and fix that issue. But it's impossible to debug at the moment.
Just to note I have 3 sites all running the same code base (WordPress environment). They are all experiencing this issue. All been running fine for many years.
Cheers
This was to do with rate limiting that was not visible in the Facebook APP dashboard. Helpful...
Full details here: https://developers.facebook.com/bugs/232343637174087/
Solution for your problem: You can use Facebook image button after adding link on Facebook news feed, like shown in iamge
second thing upload image on othe site and give the image path to your website and then put it on your news feed, you can get definitely positive result using this two methods.
also refer this image
thanks hope this two will work for your problem

Facebook: posting a fitness.bikes OpenGraph action

I'm trying to submit a fitness.bikes story from a Windows Phone app. Ideally I'd like it to look the same way it does in the documentation -- a table of stats, and a course map. I'm trying to figure out how to make that happen. Specifically, whether it's possible to make it happen without a 3rd party server hosting the ride data.
Questions:
When I am submitting a course object to Facebook, can I specify all needed ActivityDataPoints to make the map show up, or is something else needed?
In the sample post I've been trying, all I get is the Title, the Image, and the Description. Can I get the table of stats to show up, without needing an external server?
The posts I'm sending are not appearing on the Timeline, even for a test user. They do appear in the Activity Log, and are marked with "Allowed on Timeline", not "Showing on Timeline." I'm using fb:explicitly_shared... shouldn't the post show up?
Ok, after further experimentation, I believe I can answer my own questions:
The fitness.bike activity post data should contain only fb:explicitly_shared, privacy, and course links, and nothing else. For some reason adding created_time makes the post appear in standard layout.
Same answer as above. Table of stats is part of the Map layout Facebook provides.
Same answer as above. Removing the created_time attribute magically makes the post appear correctly on the timeline.
P.S. As far as an external server -- it is necessary only if you want to redirect the user to your own page. Even then, the server can grab the object_id from the URL, grab an access token from Facebook using AppID and AppSecret, then lookup that object (course), extract data out of it, and show on the page.
Hope this helps someone else.

Inconsistent Graph API Behavior for Album Requests

I am trying to get a listing of photo albums using:
https://graph.facebook.com/USER_ID/albums
It is working perfectly for some users, and other users I am getting nothing:
{
"data": [
]
}
I am sure in both cases the user ID is correct and valid. For the users that return nothing I can see the albums when logged in as the same user, so I don't see how permissions could be an issue.
Any suggestions would be greatly appreciated!
Igy appears to be correct. This is a duplicate of 10939051.
Since I could not find it, the setting that will exclude all user photos and albums from apps can be found by going to Privacy Settings > Apps, Games and Websites > How people bring your info to the apps they use > De-check My photos.
Here is a screen shot:
You'll get better results by writing it this way:
https://graph.facebook.com/USER_ID?fields=albums.fields(id)
I got this result while playing with the Graph API Explorer.
Here,
you've to generate a new token with user_photos and friends_photos selected.
Then, select what you need in the list:
And it seems to display what you need (at least if the ID you are looking for is the one of your friends)!

connecting social like plugin and my website

This is my first thread so be easy on me :) . For all problems i had i found a solution here at stackoverflow, but this one i can' figure out.
So, I wanted to make like button at my website (not facebook page, but actual website) , so when an user likes some URL, it appears in his timeline (website is with articles, so every article has its URL) . Mosh important, i wanted that the like would be in form " 'someone' liked 'something' ON 'SOME_PAGE'" . This "on some page" is the wanted part actually. After some research i found out that i need open graph protocol and facebook app to make that happen. So i followed this tutorial http://developers.facebook.com/docs/reference/plugins/like/ .
Right now, when i like something on my webiste, it appears in my timeline like it should, in form :" name surname liked "something" on "some_facebook_app/webpage" , so its all ok if I make the like, but when someone else likes if (person that is not admin for this app) , it appears as regular link, actually it gets rendered with open graph protocol as in , it shows title, description and picture, but it doesnt connect to my facebook app, there is no "on facebookapp" part. Also, when i come from my friends facebook account to my timeline, likes i made on this particular website are not visible. I dont know is that the problem because i cant find anywhere anything about this (i subscribed app details, i dont know if that is the problem...) . Also, only my face show up in likes, even when i know for sure that my friends liked that particular link too, but I assume that this is problem that is associated with the previous one (because like is not "connected" to facebook app) .
I'm new in this facebook developer stuff, and this facebook app is a big black hole for me...
I found out what it was. I didnt know what sandbox mode meant, so after disabling it, app is now visible to everyone. Nobody actually helped me here, but thanks anyway :) .

Facebook - why if i connect album or photo, returning false

Thursday i could connected with user album and photo. but Friday & today (Monday) i can't..
there is something bug with Graph API??
and how to create album in page (business page) with Graph API?? i got the identifier and i can access with https://graph.facebook.com/121845897865800 but if i check manually in my page, i couldn't find that..
i using permission: publish_stream,offline_access,user_photo_video_tags,manage_pages
need help!!
As for the first matter, things like to go in and out with the facebook API. It may even be a result of the devs trying to fix the issue with your second point. If it does not fix soon, fill out a bug report or search the forums
as for the second this is a known bug:
http://bugs.developers.facebook.net/show_bug.cgi?id=11254
http://bugs.developers.facebook.net/show_bug.cgi?id=10607
I suggest adding your email to the bug reports to keep track of facebook's progress with fixing them. Facebook says "it is being actively worked on." whick means it could be a while.