facebook send API Error Code: 100 API Error Description: Invalid parameter Error Message: 'link' is invalid -


i using facebook post graph ui posting private message link application in facebook. earlier working fine last 2 days dialog started throwing error :

an error occurred. please try again later.

api error code: 100
api error description: invalid parameter
error message: 'link' invalid.

for sending message using code :

function sendmessage(id) {   fb.ui({     method : 'send',     name : 'my app',     link : 'https://apps.facebook.com/my_app/',     : id,     show_error : 'true',     description : 'my description'   }); } 

i have googled , relevant information facebook blocking link own domain avoid spam. change link other live site working.

i need send link application have provide such functionality.

found solution:

facebook send dialog error code: 100 api error description: invalid parameter error message: ‘link’ invalid.


problem cause:

facebook not allowing use own link stop spamming.

problem solution:

there such no solution bared facebook api.

other workout:

shorten url, didn’t works facebook check provided url. redirect url, same above. in case have deployed additional html page use redirect facebook app link. remember should have timer few seconds facebook scans provided url, wont able detect page redirecting same application link. have used following code html file:

<html> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"> <title>my application</title> </head> <body>     <p id="demo"></p> </body> <script type="text/javascript">     var url = "https://apps.facebook.com/my_application_id";     var myvar = setinterval(function() {         mytimer()     }, 1000);     var counter = 3;     function mytimer() {         if (counter == 0) {             window.location.replace(url);             window.clearinterval(myvar);         }         document.getelementbyid("demo").innerhtml = "you redirected in "                 + counter + " seconds...";         counter = counter - 1;     } </script> </html> 

Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -