I am trying to post a URL to a facebook page. using PHP SDK. I am able to post successfully from my localhost. But on the live server, I get the result "Sorry, something went wrong".
when running the code from live server, I have no problem obtaining access_token to post to the page. Only the posting will not work.
I tried to post the link manually using the graph api explorer. and found that
"(#100) link URL is not properly formatted"
I even tried using http%3A%2F%2Fgoogle.com , and it would return the same error.
Anyone has got any ideas?
Thanks
I took the URL that was used by the live server (to post link to the facebook page) , and used fiddler to post it from my local machine. and it worked. so i am wondering whats preventing the code from working successfully from the server?
I tried the same code from another domain and it worked.
I am yet to find out if it was not working because of the way the 1st domain was sending CURL requests, or if the domain was blacklisted for posting too much in the past.
either way, facebooks error messages are not at all helpful!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With