I'm creating an iOS application where I'd like to integrate Facebook Messenger for users to message each other. I've tried deeplinking via fb-messenger://user-thread/{user-id}, which works as intended. When I open the URL via my app, it switches over to Facebook Messenger. However, as this type of link seems undocumented by Facebook, I'd rather not risk using it as they might change it at any given time.
I've then looked into Facebook App Links, but as they're very few examples of how to actually use it, I'm not completely sure how to use it for a simple case of switching from my own app to messenger with a user-id as a parameter.
Any comments on this matter will be much appreciated.
Related
I'd like my iOS app to have an option to share a photo on Facebook. I implemented it by following the instructions in these 2 links:
https://developers.facebook.com/docs/ios/getting-started/
https://developers.facebook.com/docs/sharing/ios
I tested it and it works fine if I use the same Facebook account that I used for creating the Facebook app.
The problem is if I try sharing a photo with a different Facebook account, it fails. Which makes sense as the following is written on the Facebook app dashboard:
This app is in development mode and can only be used by app admins,
developers and testers.
In this case, it looks like I need to switch my app to production from development. So, do I just need to enter URLs for privacy policy and terms of service? Or do I also need to start a submission for any kind of permission? Also, having a production app seems a bit vague as none of the instruction guides which are provided by Facebook itself mentions switching to production from development, they only show code pieces to use to have the share functionality.
Just to clarify, I don't use Login with Facebook, I only show FBSDKShareDialog for sharing photos, that's all. I don't even want to collect any information from Facebook.
You will get an option App Review . Then allow Make app Public YES .Then any one can use it
When trying to share a picture on Twitter from an iOS app (of mine) -- already on the appStore -- I keep getting this message:
But the reality is that I am already logged in to a Twitter account.
I can switch to the Twitter app, confirm that I am logged in and come back to the current app.
Am I doing something the wrong way with Twitter?
Or is possible that something is not working with the app itself?
I need to say that this kind of sharing used to work without problems.
So this might be due to some recent change in the iOS.
I have a little problem. I am sing Facebook's API to get users information. I am using the code that provide here: https://github.com/pedro1993/ios-howtos
In those examples, when somebody logs in with Facebook they are taken to the Facebook app, whereas when in my app, Facebook is opened in a UIWebView. How can I stop that from happening and use the Facebook app?
Here is an example:
Peter
Follow this official tutorial instead https://developers.facebook.com/docs/facebook-login/ios/v2.0
Update Facebook SDK has several fallback behaviors to try before it falls back to in-app web view. You can debug it by setting breakpoints in corresponding places in code. From the look of it https://github.com/facebook/facebook-ios-sdk/blob/296771f5ed7674fcbed9c31cf39bf9c8e4706403/src/Login/FBSession.m#L1039 seems like a good place to start.
Especially try to debug -[FBSessionAppSwitchingLoginStategy tryPerformAuthorizeWithParams:session:logger:.
I want my app to create a new Facebook group chat with certain people that opens either on Facebook's site in Safari or in the native Facebook app when the user presses a button. I want Facebook to handle the whole chat and my app only to initiate it somehow in the cleanest and least involved way possible. My app already uses the Facebook SDK to open an active FBSession, so I've already got login credentials.
Looking around online and in Facebook's docs, I can't find anything that suits my needs. The closest thing I found was in this answer containing a list of Facebook app URLs you can connect to that open the Facebook app to certain pages. There's "fb://chat/(initWithUID:)" and "fb://messaging/compose/(initWithUID:)". However, not only is there no explanation on how to use these, but people say that Facebook has changed these URLs (and does not have any documentation on them), so they don't work anymore unless I reverse-engineer new URLs (which could change again). Ugh, so close!
I also found examples on starting chats with the Facebook Chat API, but that involves logging into Facebook using some networking framework then writing my own GUI and model for sending messages, which I am only prepared to do as a last resort. There should be some way to let the Facebook app or website do all that. Does anyone know how I can do this?
I've found something very close, but I still don't see a way to make my app initialize it with the desired group of friends:
The Facebook SDK has a message dialog that can appear for sending messages to friends. This isn't exactly what I wanted but is good enough because it means that all the programming is already done for me by Facebook, and users should be able to see these messages on https://facebook.com and the Facebook apps. https://developers.facebook.com/docs/ios/share#message-dialog
As the title suggests how to disable the name from appearing when sharing on Facebook. Is it default?
For example, I want to remove the part "via HelloFBSample":
This is because when you click that text, it appears like this:
How to avoid this? Need some guidance on this...
There's no way to disable it.
BTW, the link is only failing because it's a sample app, and there's no website or Facebook page set up for the app. If you built an app and configured it with either a web address or Facebook page, it would redirect to that instead.
If you use the built-in sharing functionality of iOS, SLComposeViewController, this should show that the post was made with Facebook for iOS and avoid your problem.