There are many URL schemes that can be used for facebook on iOS.
Is it possible to use one of these URL schemes to post a photo to a fan page?
I was trying to use fb://publish/photo/(initWithUID:)/(aid:)/(pid:)
and fb://upload/(initWithSource:)/profile/(uid:)
without any luck.
I'm not sure what to use for the initWithSource:
.
Has anyone had any success in doing this?
You can use ShareKit framework to share the images to Facebook. All you need to do is simple as following.
SHKItem *item = [SHKItem image:myImage title:@"Title"];
SHKFacebook *sharer = [[[SHKFacebook alloc] init] autorelease];
[sharer loadItem:item];
[sharer share];
ShareKit is very useful and easy to use.
你可以从这里得到一些想法,然后合并在自己的代码的代码按您的要求的粉丝专页上张贴照片
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.