Facebook: message posted with PHP SDK not visible to OTHER users -


i facing issue facebook sdk post action when posting basic message on page. have tried solve issue myself using google , stackoverflow, didn't manage find fix.

the issue following:

when post message sdk, can see on page (and comment on it), , in facebook main feed only if logged in administrator on page. if else connects facebook , goes pqge, won't see post!

  • i using php script on personal desktop (wamp server).
  • the attachement very basic: 'message' => "hello dear followers!"
  • the application used post in sandbox mode.
  • your app detail page has not yet been submitted review.
  • the message appears public on page.
  • when post manually, exact same message on page , found.

it's strange can see post on page, nobody else can. can me issue? also, message not posted in twitter, whereas page linked twitter account. hereafter simple piece of code associated problem.

$appid = *(hidden)*; $appsecret =  *(hidden)*; $pageid=  *(hidden)*; $facebook = new facebook(array('appid' => $appid,'secret' => $appsecret,'cookie' => false)); $user = $facebook->getuser();  if($user){      try{          $page_info = $facebook->api("/$pageid?fields=access_token");          if (!empty($page_info['access_token'])){              $attachment = array(              'access_token' => $page_info['access_token'],             'message' => "hello dear followers!"              );              $status = $facebook->api("/$pageid/feed", "post", $attachment);          }      }  } 

it sounds me didn't set privacy of posts posted application inside of facebook.

see if "only me" appears application posts (like in following image).

enter image description here

then, verify "sandbox" mode of application.

enter image description here

if it's set on, set off.

what sandbox mode?

when testing apps, place them sandbox mode. hides app entirely users have not authorized in app dashboard see app, roles described below. please note when app in sandbox mode, cannot call api calls on behalf of users cannot see app.

source


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -