Note that there are some explanatory texts on larger screens.

plurals
  1. POiOS Post to Facebook shows m.facebook.com
    primarykey
    data
    text
    <p>My iOS app is posting a in-app post of ours from our app to Facebook using the Social framework and the following code.</p> <p>It successfully posts to Facebook and correctly deep-links back into our application. The issue is that when this post is viewed on a on the Facebook iOS mobile app, instead of displaying the post's caption or description, we are seeing "m.facebook.com" as shown in this screenshot. We'd like to remove or replace "m.facebook.com" with either caption, description, or our site's root URL.</p> <p>I"m guessing this "m.facebook.com" URL root is coming from the deeplink URL, which is "<a href="https://m.facebook.com/apps/(our-app)/?deeplink=postId:(post-id)" rel="nofollow noreferrer">https://m.facebook.com/apps/(our-app)/?deeplink=postId:(post-id)</a>". We want it to deeplink, but don't want "m.facebook.com" to be displayed.</p> <p>Any advice? Thanks.</p> <pre><code>NSString *deepLink = [NSString stringWithFormat:@"https://m.facebook.com/apps/%@/?deeplink=postId:%i",FACEBOOK_APP_NAMESPACE,self.post.postId.intValue]; captionString = [NSString stringWithFormat:@"%@ : %@", parentCategory.name, category.name]; NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys: self.post.name, @"name", captionString, @"caption", self.post.details, @"description", deepLink, @"link", nil]; SLRequest *request = [SLRequest requestForServiceType:SLServiceTypeFacebook requestMethod:SLRequestMethodPOST URL:feedURL parameters:params]; </code></pre> <p><img src="https://www.image-share.com/upload/1907/65.png" alt="Facebook iOS post"></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload