iOS Post to Facebook shows m facebook com

0 votes

My iOS app is posting an in-app post of ours from our app to Facebook using the Social framework and the following code.

It successfully posts to Facebook and correctly deep-links back into our application. The issue is that when this post is viewed 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.

I"m guessing this "m.facebook.com" URL root is coming from the deep link URL, which is "https://m.facebook.com/apps/(our-app)/?deeplink=postId:(post-id)". We want it to deep link, but don't want "m.facebook.com" to be displayed.

Any advice? Thanks.

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];

Facebook iOS post


 

Sep 22 in Others by gaurav
• 18,960 points
10 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Others

0 votes
0 answers
0 votes
1 answer

It shows black screen when trying to load Map on device with ionic 2 Google Map Native plugin

In order to answer your question, start ...READ MORE

answered Feb 8 in Others by Rahul
• 9,240 points
404 views
0 votes
1 answer

How to copy title of WP post dynamically to focus keyword field in Yoast SEO?

$title = get_the_title(); $args = array('posts_per_page' => -1, ...READ MORE

answered Feb 24 in Others by narikkadan
• 20,880 points
144 views
0 votes
1 answer
0 votes
0 answers

how to take user input in livesql.oracle.com in PLSQL

How to take user input in Oracle ...READ MORE

Jun 8 in Others by polo
• 1,480 points
167 views
0 votes
0 answers

iOS Post to Facebook shows m.facebook.com

My iOS app is posting an in-app ...READ MORE

Sep 23 in Others by gaurav
• 18,960 points
11 views
0 votes
0 answers

touch.facebook.com on iPhone giving me "Entity 'nbsp' not defined"

Thanks to Logan and this url structure, ...READ MORE

6 days ago in IOS by Soham
• 9,330 points
11 views
0 votes
0 answers

Launch an app from within another (iPhone)

Is it possible to open any iPhone ...READ MORE

5 days ago in IOS by Soham
• 9,330 points
9 views
0 votes
1 answer

How do I create folder under an Amazon S3 bucket through PHP API?

Of Course, it is possible to create ...READ MORE

answered Apr 24, 2018 in AWS by anonymous
9,434 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP