简体   繁体   中英

Facebook Wall Post Issue

I have been trying to create a wall post in the end of facebook app. I have done this about fifty times till now, but suddenly, facebook places other content to the wall post instead of the one i set. I use the php sdk to do the wall post and the code is:

$facebook->api(
    '/me/feed/',
    'post',
    array(
    'access_token' => $access_token, 
    'message'      => $message,
    'name'         => $name,
    'caption'      => $caption,
    'description'  => $description,
    'link'         => $my_url,                
    'picture'      => $wall_post_image
    )
); 

access_token and all other variables are tested and valid. The weird thing is that the wall post is being done having the right link to the app, but the name is the page name | app name, the picture is app icon and the caption is the company page description

Any ideas why this is happening?

why dont you give them static value and see if it posts that,it might clear some confusion like

$facebook->api(
    '/me/feed/',
    'post',
    array(
    'access_token' => $access_token, 
    'message'      => 'testing message',
    'name'         => 'my name',
    'caption'      => 'testing caption',
    'description'  => 'testing description',
    'link'         => 'http://xyz.com/myurl.php',                
    'picture'      => 'http://xyz.com/linktoimage.jpg'
    )
); 

if this values are not posted it means that some other wall post function is working beside this and if it works than you were not passing proper value

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM