Facebook could not post to wall facebook error 1367001 -


this self answer result of agonizing on deprecated facebook sharer url based api, kept refusing post url had setup through sharer url format. resultant response following no matter privacy setting set:

{     "__ar":1,     "error":1367001,     "errorsummary":"could not post wall",     "errordescription":"the message not posted wall.",     "payload":null,     "bootloadable":{},     "ixdata":[] } 

my mess of code. (yes breaks every convention known web development , yes inherited code.)

<?php     $url = urlencode(domain::getdomain()."/".$details['urlname']);     $title=urlencode($details['name']);     $summary=$details['name'];     $image=urlencode(constant('base_images').'/'.$details['gallery']['listing'][0]['thumb']['src']);  ?>  <a onclick="window.open('http://www.facebook.com/sharer.php?s=100&amp;p[title]=<?php echo $title;?>&amp;p[summary]=<?php echo $summary;?>&amp;p[url]=<?php echo $url; ?>&amp;p[images][0]=<?php echo $image;?>','sharer','toolbar=0,status=0,width=548,height=325'); return false" href="javascript: void(0)"><img src="/site/images/icon-facebook.png" alt="facebook" border="0"></a> 

the official question follows: why sharer method of sharing links in facebook result in error?

for case, because had not included qualified url including protocol. php generated url mess of concatenation , did not include protocol. after adding it, post went through.

i had change second line listed above to

    $url = urlencode('http://'.domain::getdomain()."/".$details['urlname']); 

there more reasons why facebook throws 1367001 error, @ least 1 thing check.


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -