简体   繁体   中英

Facebook post not sending FBConnect

I am using FBConnect for iPhone to post on the wall of the user in my iPhone Application.

Unfortunately for some reason this is not working with the dialog attachment I am using below.

dialog.attachment = [NSString stringWithFormat:@"{\"name\":\"Check out %@.\",\"href\":\"%@\",\"description\":\"I found this! \",\"href\":\"%@\",\"media\":[{\"type\":\"image\",\"src\":\"%@\",\"href\":\"%@\"}]}", song, songlink,songlink, link, link];

I would really appreciate it if you could tell me why this isn't working.

Dump your attachment to NSLog and verify that it's syntactically correct - does it say what you think it will? Are all of your quotes balanced correctly?

After more attempts of fixing this, I found out that the FBConnect API does not support redirection URL's.

Thanks to @Myles Gray for the help!

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