Adobe AIR Facebook login setup - facebook

I need to implement facebook login in Adobe AIR app for Desktop/Mobile.
I saw some docs on the code required for this.
My concern is, which platform should be selected in facebook apps console. Is it web ? Then what should be the web urls & where to place them ?

Well if you are building a mobile app, then you might want to select Android or iOS depending on the platform. If you are building the same app for both platforms then select any one of those and later under settings of your app dashboard you can click on Add Platform and add the other one. If your app has a canvas presence then you can add that as well later on. Regardless of what you pick initially, you can always add/edit platforms on your app dashboard.

Related

Can I use AdSense in a CapacitorJS application to show ads across all 3 platforms: Web, iOS and Android?

Background
I have an app that's available on the web, iOS and Android.
I’m using CapacitorJS, Angular and Firebase as main tech stack. By using Capacitor I have a single codebase for all 3 platforms.
How Capacitor works on iOS and Android is that it takes your web-projects dist-folder and wraps it in a native WebView. Sort of like how Ionic works. And this is what makes showing ads tricky.
Problem/Question
I would like to use one single ad provider across all 3 platforms. From my understanding AdSense is only to be used on websites while AdMob is used on mobile apps.
BUT, my whole app is web based, even the ios/android app is just the website shown in a webview. Doesn't this mean I could use AdSense even in my mobile apps, or are there any restrictions I'm unaware of?
How would you handle my scenario? What options do I have? I appreciate any suggestions or insights.
https://support.google.com/admob/answer/48182?hl=en&ref_topic=9756841#zippy=%2Cview-full-ad-placement-policies
Google ads, search boxes or search results may not be:
Integrated into a software application (does not apply to AdMob) of any kind, including toolbars.
So to answer your question adsense cannot be used in any software application ( does not apply to Admob). So you can use it in native android and ios app.
Also refer to https://support.google.com/admob/answer/48182?hl=en ( Refer Technical requirements section ) You need to check what type of adsense ads you are using within the app.
WebView
AdSense for content (AFC) and Ad Exchange (AdX) display ads are not supported through all WebView technologies.
App developers wishing to monetize by publishing AFC and AdX display ads through a WebView must use one of the following supported viewing frames:
Android: Chrome Custom Tab
iOS: SFSafariViewController (iOS9 and iOS10 only)
Google AdMob and AdX in-app ads may be shown in an app next to a WebView so long as the Google Mobile Ads SDK is in use and the publisher is compliant with all other AdSense program policies.
Using a third party website within your android app also requires permission from website owner. So you might be asked to present the proof of ownership or your app might be removed from play store. Refer to admob policy for using website within your app.
https://support.google.com/admob/answer/2753860#Exceptions_AdSense&zippy=%2Cview-exceptions%2Cview-ad-placement-policies
Displaying a third party site in your app
When an app displays someone else's site within a frame, this is considered framing content. Publishers are not permitted to frame third party content and monetize it without permission from the owners of that content.
If a publisher owns the content, it can be framed in their app and monetized. However, if the framed content is already being monetized by Google Ads, the framed content should not contain any additional code for AdSense or AdMob inside the version on the mobile app.
Apple is strict on approving apps which are mimicking a website so chances of rejecting on apple are high ( not related to advertisement ) https://developer.apple.com/app-store/review/guidelines/#design
4.2 Minimum Functionality
Your app should include features, content, and UI that elevate it beyond a repackaged website. If your app is not particularly useful, unique, or “app-like,” it doesn’t belong on the App Store. If your App doesn’t provide some sort of lasting entertainment value, it may not be accepted. Apps that are simply a song or movie should be submitted to the iTunes Store. Apps that are simply a book or game guide should be submitted to the Apple Books Store.
Displaying ads within webview doesn't give native experience to end user. So technically you are not violating any rules ( as long admob other policies are followed ). Its recommended to implement native Ads for rich UI experience

Configuring AIR for desktop as Facebook Application

Creating an AIR desktop application that has the ability to upload images to a Facebook user's account.
Even though this is a desktop application, in order to integrate with Facebook you need to embed a 'webview'. So I am confused as to how I should define this on Facebook? From Facebook's point of view, is this a web application or a desktop application?
https://developers.facebook.com/docs/facebook-login/review/requirements#platforms:
“Desktop apps should submit a Web platform and include detailed screenshots or a screencast of the integration.”
Choose a dummy address for the Website platform (such as http://localhost/), and mention the fact that this is not actually a website app, but a desktop app, very explicitly in your review instructions.

Is integrating facebook allowed for desktop app?

I'm currently using facebook with my desktop app. It's working fine now.
But facebook keep requesting me to submit the app. And I cannot find an option to submit native desktop application. The only options I saw are(iOS, Android, Web... ). There is no option for native desktop app. Anyone can help?
The App Detail is needed to submit in order to list your App in the Facebook App Center. It automatically fetches the details from the Settings and allow you to list the platform you want to show in the App Center.
For a web application, you can select ON the Website option in the list, here's the screenshot-

How does Facebook handle tablets?

I'm developing a Facebook app that has a responsive layout. Sometimes my app has to generate a link for the user. Whenever possible, the links will send the user to a Page Tab (when the user is on a desktop) and other times it will link directly to the app (when the user is on a mobile phone).
What is the default behavior for Facebook on tablets? Does it show the mobile site or the desktop site?
Should I use the mobile or desktop version of my app on tablets?
Update: In response to BBog's question in the comments:
My app prefers the desktop version because it includes a Like-gate. If the user experience is good for a tablet to view the app in a page tab (which is only available on www.facebook.com ie non-mobile), then that is preferred because the like button will be displayed at the top of the page, above the app's iframe. In contrast, the mobile version of the app requires that the user click a link that takes them to the (mobile) facebook page which they must like to un-gate the app. It adds an extra step for the user and requires that they navigate away from the app for a moment. Users might be discouraged by this extra step and decide not to enter the gate.
For Android tablets - Honestly, it depends on how you want Facebook to handle it. If you look at the android native app linking wiki - https://developers.facebook.com/docs/mobile/android/deep_linking/, Facebook provides you the option to choose the user experience. The facebook native android app itself treats tablets like mobile phones. It would be ideal if your app is compatible with tablets, and then you can enable deep-linking which will let the user view the content inside of your app.
For iOS, it's handled from within the iOS bundle id.
Unable to find a concrete answer, I ended up detected the user's referral on the first page access. Then if www.facebook.com is in the url, I go to desktop. Otherwise I go to mobile..
if ($detect->isTablet()) {
session_start();
if (!isset($_SESSION["tabletAsMobile"]))
$_SESSION["tabletAsMobile"] = (stripos($_SERVER["HTTP_REFERER"], 'www.facebook.com')===true):'0':'1';
}
$useMobileLinks = ($detect->isMobile() || ($detect->isTablet() && $_SESSION["tabletAsMobile"]));
}

How do you get your app to appear on the Facebook Mobile Application? (specifically iPhone)

We have a popular Facebook Application and a version of our App for the iPhone. I was wondering how we can make our Application appear in the "Apps" Section on the new Facebook iPhone app. On my iPhone I currently see links to the App store for Pixable, Badoo, Airbnb, Foursquare and WhoisNear iPhone Application.
I have filled out the Native iOS App settings in the Developer section on Facebook (including adding the Bundle ID and the iPhone app store ID) several weeks ago thinking it took a while to update, but still nothing shows up on my iPhone app.
Any help would be appreciated.
Best,
M
Screenshot of where we want our app to show up:
Edit your Application Settings and on the Basic Settings specify a Mobile Web URL for your Mobile Web integration. You should be able to set the URL to your app's iTunes URL.
Fill out the iOS information within the admin settings of your application, which also means they are using the same application id. You also have to have granted at least the basic permissions via connect on the app, and have the app installed on the phone.