Normally i upload photos with this code:
$facebook->api('/me/photos', 'POST', array(
'source' => '@' . realpath(IMGDIR),
'message' => TEXT
)
If i upload photos with this code, photos are uploaded in "APPNAME Photos" but i'd want to upload photo in "Wall photos". How can i do this ? Sorry for my english!
Can't you upload directly to the wall photos album? eg With your code, changing /me/photos
to /<ALBUM ID>/photos
- that's how you'd do it for any generic album, I'm not sure if the wall photos album works like this
Make a GET request to /me/albums and get the user's list of albums, you should be able to upload to any of them
你必须测试
if($album['type'] == 'wall')
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.