c# - Facebook Graph API 403 Forbidden Error -


this similar questions on here, none have seemed produce answer has helped me. i'm calling graph api c#/.net application photos particular album, , i'm receiving 403 error...sometimes.

i've never received error in development environment, in production. i'm caching responses hour, application hit api in given hour around 20 times, , not @ once. i'm swallowing exception when errors out , not showing images, isn't long-term solution.

var request = webrequest.create("https://graph.facebook.com/album_id/photos"); var stream = request.getresponse().getresponsestream(); 

this started happening month ago didn't see in breaking changes list suggest behavior. insight appreciated.

update

this hidden away in response stream.

{"error":{"message":"(#4) application request limit reached","type":"oauthexception","code":4}}

i don't see life of me how hitting limit considering i'm hitting api few times.

if make request 1 of fb graph api endpoints not require access_token not mean should not include in request parameter. if fb documentation says not include access_token in fb server side registers server machine. limit (whatever amount exactly) can reached easily. if however, put user access token request (&access_token=xxxxxx) requests register specific user, limit hardly ever reached. can test simple script makes 1000 requests , without user access_token.

note, fb app access token not sufficient face same problem: requests registered app access_token situation alike making requests without access_token.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -