How do you associate a Page with an App, now that the migration deadline is over? - migration

Here's the situation: I have a native iOS app that had its entry in created Facebook Developers before App Profile Pages were deprecated. There is an automatically created App Profile Page for the app, but when I view it, it has a yellow box saying:
Removing App Profile Pages App Profile Pages are now deprecated. We
recommend updating any links that you have shared to your App Profile
Page to point to your new target Page or app. Please save any content
or Insights that you wish to keep. This content is accessible via the
Graph API with any valid access token. For additional information,
please review this post:
https://developers.facebook.com/blog/post/2012/02/01/how-to--migrate-your-app-profile-page/
Before February 1st, there was a link to migrate this page to a regular Facebook Page, but now there isn't. I've created a new Facebook Page according the the docs, and the page has the same name as the app and the category is set to Products/App. But I see no way to associate this new page with my app.
How are we supposed to associate a new Facebook Page with an existing app?

So I ended up deleting my app on Facebook and creating a new one. This meant changing the App ID strings in my iOS app and in its URL handler, but now it works correctly, and I can create a normal Facebook Page for the app. If you have an existing app that customers are already using, that means you'll break the app unless they've updated it on their iOS device, and you lose everything on the old page.

To associate an existing Facebook Page with an App:
Go to your Facebook Page and click "Edit Page" section
In the Basic Information tab, set Category as "Brands & Products" -> "App Page"
Make sure the Page name is the same as the App name
Go to your Facebook App "Edit App" page, and now you will be able to choose the Page as the App page.

Related

Track user from web page to app install & open

I have a requirement where there is a promotional mobile web page where the user can click to download and install the app via AppGallery. When the user opens the app it should display custom content and record that back to our API based on the tracking ID (coming from the web page).
If the user installed the app normally (eg. didn't go through the promo page) then no custom content displayed.
How can the app know that it was installed and opened via a promo web page?
I'm using react-native.
You can embed the AppLinking hyperlink in the promotion page to implement this function.
For Detail,pls kindly refer:https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-Guides/agc-applinking-applicationscenarios-0000001054263231?ha_source=hms1
Hope this could help with your issue. :)

How to do FB feed share post without leaving my hybrid app?

I am making mobile app using Sencha touch which will be bundled as native app and installed on devices. In my app on certain pages I want to add "share" functionality which is supposed to post some data to user's feed. While testing on browser I can to do that by opening a window with FB sharing url like "https://m.facebook.com/dialog/feed" or "https://m.facebook.com/sharer.php" and passing all related params as explained in https://developers.facebook.com/docs/reference/dialogs/feed/
But when this app is bundled and I share with this, user is moved to browser and cannot return to app because redirect_uri cannot point to app which is why I wanted to open this dialog within my app, probably in an iFrame. This is also not possible because these dialogs are not allowed to be embedded in iframe by META tags and in order to surpass it I have to do user login which again is another dialog which I cannot open in my app's iFrame.
I also looked at sample sencha app http://blooming-day-7830.herokuapp.com/ but it also takes user to separate login page instead of opening in-app dialog.
So my questions is how does hybrid apps connect with FB without moving out user to browser?
if you decide to use PhoneGap you can try the following two options. You will have to check for the iOS version before you switch your Phonegap call to. . .
Option 1 : for iOS before 6.0
Phonegap has a pretty nifty ChildBrowser plugin that you can use to load the FB share page without leaving the app for iOS 5.0 and below.
Option 2 : for iOS 6.0+
Facebook Share functionality has now been added to iOS. So all you have to do, is call a custom plugin class that you create, and call the standard FB share code using a basic Phonegap plugin call. You won't leave the app, the ChildBrowser doesn't have to show up, instead, you'll get the stock iOS-FB share sheet that will show up, you can add pictures, text, and so on, and post to facebook.

How does new Facebook App integrates App Store page?

Since some weeks Facebook displays ads for apps in their iOS client. When you click on them the App Store apps detail page opens as a modal view controller inside the Facebook app.
I only know how do open App Store pages via their URL, but how to show a App Store page from inside your app?
You're looking for the SKStoreProductViewController. Here is a link to the docs :)
https://developer.apple.com/library/ios/documentation/StoreKit/Reference/SKITunesProductViewController_Ref/SKStoreProductViewController.html
I also found this helpful tutorial :)
http://www.techotopia.com/index.php/Making_Store_Purchases_with_the_SKStoreProductViewController_Class

iOS app posting to facebook but via link is not found

I am trying to figure out where I set the redirect for when a user clicks "via app" after someone post with my app. Right now when I click on my via link it tells me that the page is not found. I would like to set this link to the Facebook page I made for my app.
I have checked all the setting at my developers.facebook.com. I am thinking it is something set inside the graph api.
I had to create a page for my app. That is where it was trying to redirect to. You can create/set your page in App Details.

How do I get an APP ID for Facebook on my web site?

First of all, my simple purpose is to add a Facebook login button to my web site. So I go to the login button description.
I must be thick headed, but I cannot get an APP ID. Under the "Authentication" writeup it says, "The JavaScript SDK requires that you register your website with Facebook to get an App ID (or appId)." Clicking on "Register Your Website" takes me to the APPS page. And since the login button is indicated under "Websites", I click that and it just takes me to another page that says I must register my website. I am ready to pull out what hair I have left.
What am I missing? Do I have to create a "new" app? I can't call it login since apparently that already exists.
You need to create an app here:
http://developers.facebook.com/
Click on Apps -> Create New App
Give the app a name etc the you will need to add your websites URL into the Website section.