简体   繁体   中英

Custom URL Scheme for sharing URL in native Facebook iPhone App

I know the available custom URL schemes for the native Facebook iPhone App:

What are all the custom URL schemes supported by the Facebook iPhone app?

But I can't find a way to publish a URL to my wall / timeline in that way, that Facebook collects / shows the site title and thumbnail as it does with the touch.facebook.com/sharer.php file.

The only way I see so far is to call

fb://publish/?text=www.domain.com

but this only post the link to my timeline, not title, thumbnail and site description.

Does anyone know a better way?

Basically you have two options:

You can either launch Safari using the Feed Dialog URL Scheme as explained here or use Facebook SDK as explained here .

If your App isn't integrated with Facebook already, it's probably easier to go with the first one.

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