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, 2022 in Others by gaurav
• 23,260 points
472 views

1 answer to this question.

0 votes
From your Feed, tap Search Facebook at the top. Search for the Page you'd like to post on, then select it from the dropdown menu. Tap Posts, then tap Write something on the Page. Write your post, then tap Publish
answered Nov 4, 2022 by gaurav
• 23,260 points

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, 2022 in Others by Rahul
• 9,680 points
1,754 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, 2022 in Others by narikkadan
• 63,600 points
1,299 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, 2022 in Others by gaurav
• 23,260 points
393 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

Sep 27, 2022 in IOS by Soham
• 9,710 points
574 views
0 votes
0 answers

Launch an app from within another (iPhone)

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

Sep 28, 2022 in IOS by Soham
• 9,710 points
439 views
0 votes
0 answers

Facebook iOS 9 SDK login redirects to mbasic.facebook.com on Safari

I'm using the iOS 9 Facebook SDK to manage ...READ MORE

Nov 8, 2022 in Mobile Development by gaurav
• 23,260 points
1,318 views
0 votes
1 answer

how do i to forward domain.com to www.domain.com at godaddy for s3 hosted site?

Go to GoDaddy.com and enter your username ...READ MORE

answered Mar 10, 2022 in Others by gaurav
• 23,260 points
630 views
0 votes
1 answer

Xamarin iOS app displaying white blank screen on iPad after update to Xcode 11

Assuming you have your iPad Pro connected ...READ MORE

answered Nov 4, 2022 in Others by gaurav
• 23,260 points
1,421 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