OAuthException 1500 plot: URL you entered is not valid

Today, almost all of my calls to connect links to user feeds do not work with the following error:

{ "message": "(#1500) The url you supplied is invalid", "type": "OAuthException", "code": 1500 } 

Uisng PHP cURL, I send a message https://graph.facebook.com/{user_id}/feed and send a link parameter pointing to a valid working URL (plus message params), etc.

Oddly enough, I can issue a command line cURL request, and the request seems correct (at least I haven't had an error yet).

I do not want to write an error report until I missed something during the migration break. Any ideas as to what could be causing this?

+8
exception oauth facebook-graph-api feed
source share
3 answers

http://developers.facebook.com/bugs/476666205677592

I have this problem too. this happened at random. I am sure that the URL I specified is valid and cannot reproduce it. Thus, an error was reported here.

+3
source share
 Erro While FB Publish: {contents = "(#1500) The url you supplied is invalid"} Solution: 1. Go to: https://www.facebook.com/ 2. Click on Setting > manage app 3. Select "Edit App" button 4. Select "Permission" under the "Setting" panel at left side 5. Make Auth Token Parameter: To "URI Fragment(#access_token=…)" 6. Click "Save Changes" button. Its fixed now!!! 
+2
source share

The solution for me was:

1) I uploaded the photo to my facebook user account

 $fb->setFileUploadSupport(true); $fb->setAccessToken('access token of my user (just to post an image)'); var_dump($fb->api('/me/photos', 'POST', ['image' =>'@F:\\fb\\fb_2.jpg','msg' =>'sss'])); 

2) After that, set this image to β€œEveryone” on my facebook page.

3) Then I took the var_dumped id in the url https://www.facebook.com/photo.php?fbid={var_dumped id}

4) For each user authorized by my application, the following code usually started working $fb->api('/' . $fbuserid . '/feed', 'POST', [ 'link' => 'https://www.facebook.com/photo.php?fbid={var_dumped id}', 'message' => 'my post', 'type'=>'photo']);

0
source share

All Articles