Search code examples
androidiosfacebookactionscript-3air

Adobe AIR for Android - Open native facebook app


So I've been trying to figure out a way to open the native android facebook app from my Adobe AIR game but couldn't find a solution yet.

Basically I am interesting in letting my users open my game's facebook page and be able to click the like button.

My current solution is to open a webview but that is not good enough because users will have to enter their facebook login details.

So I just need them to open my game's page directly in their facebook app without needing to enter login details in a webview.

Is there a solution for this?


Solution

  • I think you can use navigateToURL(new URLRequest("fb://profile/your_page_id"));

    You can get your page id by going to your Facebook page and pressing the Edit Page button. It will be in the browser url bar. E.g. https://www.facebook.com/pages/edit/?id=261615207268847&tab=public

    The id is 261615207268847 so navigateToURL(new URLRequest("fb://profile/261615207268847"));