Where to set the "shared via" text for a Facebook App
Asked Answered
I

1

6

I have an iOS app that can create shares on Facebook. The sharing itself works fine but we don't see a text for the "shared via" line as you can see in the attached image. It just says "shared a link via .". I expect the text to be "shared a link via APPNAME." instead.

enter image description here

I already tried to add some settings for the Facebook App but that did not help.

This is how I trigger the share in my iOS app:

NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                               name], @"name",
                               caption, @"caption",
                               description, @"description",
                               url, @"link",
                               picture, @"picture",
                               nil];

[FBRequestConnection startWithGraphPath:@"/me/feed"
                             parameters:params
                             HTTPMethod:@"POST"
                      completionHandler:^(FBRequestConnection *connection, id result, NSError *error) {
                          if (!error) {
                              // ...
                          } else {
                              // ...
                          }
                      }];

Where can I make this setting? Is it a setting for the Facebook App or do I have to add that to the sharing call in my iOS app?

Irritation answered 3/4, 2014 at 11:23 Comment(4)
shouldn't this be set with the Display Name in your Facebook App Settings? developers.facebook.com/appsPackhorse
I thought so too but there is a text for Display Name in the Facebook App Settings.Irritation
Its a facebook bug, I'm not able to find but it was asked earlier also. You cant set this text anywhere, it's just the app nameEctoplasm
I want it to be the app name :) Do I have to call Mark to get it fixed?Irritation
E
0

I know this is a multi-tiered setup, and to be honest I'm not sure exactly which or all of these things contribute to the "shared via..." to be set, but I've currently got it working with my application so I'll give you details about what I've done and perhaps you're missing one of the below steps: (I've whited out my app-specific details)

1) In the "Settings" screen of my Facebook Developer Account I have the following:

enter image description here

Note that I have the App ID, Display Name, Bundle ID, and the "iPhone Store ID", which links to the app. If I had to guess I'd say that setting that store ID is what triggers it. It seems this leads to one of three outcomes when users click the link:

  • If a user is using an iPhone and they have the app installed, the app is launched.
  • If a user is using an iPhone and they DO NOT have it installed, they are directed to the App Store for the provided store ID.
  • Otherwise if they are on some other browser, I'm pretty sure they'll be directed to your App's Facebook Page.

2) At the bottom of the "App Details" page, there is a selection for an App Page. I did all of this stuff after creating a new facebook account for my dev team and had to be added as an admin to our App/Company's facebook business page - I was then able to link our page to the app.

enter image description here

3) I then made sure to add three things to the Plist for my application, the FacebookAppID, FacebookDisplayName, and added the fb123..... (123 being the Facebook App ID) to the URL types as shown below:

enter image description here

Exine answered 18/4, 2014 at 20:56 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.