Facebook is asking me app-ads.txt for login sdk, and it is not working - react-native

I have a react native app with admob, my app-ads.txt is present and validated by Google. The app is in PlayStore, everything works fine.
I added Facebook login button for the new version, I created the app on Facebook developer dashboard, but there is a section in general settings that asks me to confirm the ownership by adding a line to my app-ads.txt. If I don't pass this step, I can't put the Facebook app in live mode.
Even if I don't understand why I have to do it since I do not advertise on Facebook with this app, I added each of theses lines, and tested them one by one, and each time Facebook tells me that an error has occured and it can't proceed.
facebook.com,MY_FB_ADVERTISING_PERSONAL_ACCOUNT_ID,DIRECT,c3e20eee3f780d68
facebook.com,MY_FB_ADVERTISING_BUSINESS_ACCOUNT_ID,RESELLER,c3e20eee3f780d68
facebook.com,MY_APP_FB_ID,RESELLER,c3e20eee3f780d68
facebook.com,MY_APP_FB_ID,DIRECT,c3e20eee3f780d68
Just to be sure that FB has the good url, I renamed the app-ads.txt file on my server, FB tells me that no valid file was found. So, there is no problem with the url or the developer website declared on the play store.
The problem is surely in the file content, and I can't be sure which line is good.
Does someone has an idea?
Details: The new version (with fb login button) is not in the playstore yet, there is only the fist one, does it matter?

Related

Can't get my app reviewed in Facebook API

I can't get my app to be reviewed through the Facebook API.
The app is purely a facebook messenger bot, and the app type is "business".
I have configured the specific permissions I need, however I recieve an error that states "You do not have any platforms eligible for review. Please configure a platform on your Settings page."
I also cannot add my app domain in the basic settings, as whenever I press save changes, the url does not save and disappears.
Additionally there is no option to make my app live.
Any advice?
The error message
I am leaving this answer in the event someone else needs it. It was an answer suggested by Facebook support when I encountered the same problem.
Go into App Settings and add a platform "Website"
Just add your website URL.
If the requested permission is just Messenger based then the website will not be accessed or tested.

Disable Twitter Universal Deep Links

Update: It appears Twitter has fixed this issue. Clicking the authorize button now works! Thank you all for the responses.
I have a UIWebView that opens and directs to Twitters Oauth/Authorize webpage. The user signs in with there Twitter details and authenticates the use of our application with there Twitter account. This process worked perfect before the release of Twitter 6.37 iOS application. What happens now is when the WebView detects https://twitter.com/oauth/authorize?oauth_token instead of staying in the WebView it opens the native Twitter application and dies. If you uninstall the Twitter application everything works as usually it staying within the WebView. How can I prevent this from happening? I want to stay within my UIWebView and not automatically open deep links. I have been reading about the new URL deep link changes in iOS 9, but not sure of how to stop them from my application to other native applications. Thanks for any help!
As a workaround, in twitter authentication screen we can use the Go button on iOS typing keypad instead of using the sign in button on web view until twitter fixes.
Please refer the attached screenshot link for clarity.
Screenshot for the workaround
I ran into this issue as well and figured out it was because my authorize endpoint was set to https://twitter.com/oauth/authorize?oauth_token="+oauthToken (I believe this was in the original documentation). If you add api as the subdomain: https://api.twitter.com/oauth/authorize?oauth_token="+oauthToken, it will no longer trigger the deep linking and load the twitter app.
My answer to this via a Xamarin question:
Unless Twitter removes/updates the apps section of "https://www.twitter.com/apple-app-site-association" to allow a bypass or a secondary oauth that is not in the apple-app-site-association file I do not see how you would do it. These files are signed and iOS handles them at an OS level.
I have not played around very much with the continueUserActivity delegate and the NSUserActivity object that is passed to apps launched from UNI links, but I do not see a way for the launched app (i.e. Twitter) to return control to the original app, and at that point the oauth call-chain would be broken anyway....
Unique. Unlike custom URL schemes, universal links can’t be claimed by other apps, because they use standard HTTP or HTTPS links to your website.
Secure. When users install your app, iOS checks a file that you’ve uploaded to your web server to make sure that your website allows your app to open URLs on its behalf. Only you can create and upload this file, so the association of your website with your app is secure.
Via: https://developer.apple.com/library/prerelease/ios/documentation/General/Conceptual/AppSearch/UniversalLinks.html
I would report as an issue (bug?) to Twitter's Dev forum: https://twittercommunity.com

how to edit where facebook sends visitor after using the facebook "sign in" app

I have a site www.crazyfloridadeals.com and this is a licensed directory and it has a built in feature for "sign in" using your facebook account and in order to do this you need a developers App ID and App secret which I did set up, I got the app to work but two things need to be edited and I can't figure out how to do this,
After you use the app facebook sends the visitor to crazyfloridadeals.com/profile/#= which 404's how do I get the app to send them back to the Home page? I read every articl and forum but could not find anything - any suggestions are where to find this
When you use the facebook app it goues through the "permissions" and it asks do you want to all "my company" to post on your behalf? I don't need this as I am only looking for basic user info (just like screen shot attached) how can I adjust what permissions are being asked for?
I am new to this and am sorry if these are easy fixes
Having looked at your site, it appears that the FB login button is being passed the paramaters redirect_uri="http://crazyfloridadeals.com/members/facebookauth.php?destiny=http://crazyfloridadeals.com/profile/#="
and scope="email,user_birthday,status_update,publish_stream"
There should be a configuration screen if this is some sort of CMS for the FB login plugin. Otherwise there may be a configuration file somewhere in the code files itself. Of note, to remove the "post on my behalf" message, remove the 'publish_stream' from the scope variable. See this list for other FB permissions. You may need a FB Dev account to view it. Obviously, you will need to change "http://crazyfloridadeals.com/profile/#=" to just "http://crazyfloridadeals.com/"

Same code, same FB app setting but FB Login doesn't work in one website

I have a big problem with Facebook Login. I update the code to the new SDK on my developer server and I create a new FB app. Everything work fine, and when I try to login with facebook I have the popup that call something like
"https://www.facebook.com/login.php?api_key=.... "
Now I copy the code on my live server and I uppdate my old Facebook app, but with the same code and the same setting of the app I receive an error.
The popup call something like:
"https://www.facebook.com/dialog/oauth?api_key=...." and I receive an error in the popup.
The problem is in the Facebook App, but the settings are the same!
Can anyone tell me why I have this problem? Same settings but different response from the app?

How to launch Facebook with Button

Hey friends
I created a button on my app called: "Find us on Facebook". Right now I ran into a situation where I need the button to launch the Facebook application. I could really use some help such as launching the facebook application, detecting if there is a facebook application, and all the sorts of stuff like that, thanks
Some googling shows that the facebook app apparently registers to receive urls with the fb:// scheme. So you can construct a fb:// url (like, say fb://notes or something) and then ask the UIApplication object if it can open the URL. If it says that it can, then open it.
there is a tutorial and sample app at https://github.com/facebook/facebook-ios-sdk
Basically you need to try to call fb://profile/yourpageid to load the FB app on your page.
The sample app shows you how to do this and fall back to loading in Safari if the app is not installed on the device.