(# 100) link is not formatted correctly when posting on facebook page

I am trying to post a url on facebook page. using the PHP SDK. I can successfully post a message from my local host. But on a real server, I get the result "Sorry, something went wrong."

when I run the code from a live server, I have no problem getting the access_token to publish on the page. Only wiring will not work.

I tried to publish the link manually using the graphical api explorer. and found that

  • I can send a message through the graphical api explorer.
  • I can’t publish the url through the graphical api explorer. I get an error

    "(# 100) link is not formatted correctly

I am encoding the link I'm trying to publish. and they are valid, existing links.

I even tried using http% 3A% 2F% 2Fgoogle.com and it would return the same error.

Some other information

  • The code is executed from mydomainname.com/folder/
  • I added the domain name in the "Application Domains" field.
  • Sandbox mode is on.
  • When I tested my local, I was able to post 25 links to (after which it threw errors]. When nothing was working on the real server, I returned to locahost to check again with 25 links or more, and found that everything worked fine local.I wonder if I hit any limit or if my application was black.

Does anyone have any ideas?

thank

UPDATE

URL-, live ( facebook), , . . , ?

+5
5

, .

, - , 1- CURL, .

, facebook !

+1

, :

"me/feed" "me/photos" url. !!!

+1

, , , -, .

'picture' => class_exists('CurlFile', false) ? 
             new CURLFile($photo, 'image/jpg') : "@{$photo}",

,

'picture' = > " http://i.stack.imgur.com/VGWZD.jpg?s=24&g=1",

0

. , , URL- URL- POST API- Graph.

0

"". , , , .

0