Post link to Facebook including app URL scheme - iOS 6
facebook, ios, social-networking, uiactivityviewcontroller
Solution
You have 2 options :
Create a simple server-side web service that will redirect from `http://yourserver.com/linkToApp/image` to `myurl://image` . It could even show a different page/preview if the app is not installed/if you're not on an ios device.
Create a facebook app and use "Deep linking" (it will basically do the same for you..)
Problem
I'm using the UIActivityViewController to share an image and url from within my app. I'm having trouble formatting the facebook post. I attach an image using a subclassed `UIActivityItemProvider` and provide the text for the post in the same way. I want to add a url, but it needs my apps custom url scheme in front of it like this `myurl://image?url=http://imageurl.com` The problem is, when this is posted, only the last half of the url is clickable (from http:// onwards). Which means it doesn't open my app with the url. Is there another way to do this? I know I can create an app on Facebook, but how can I tie the two together using the `UIActivityViewController`? Thanks