Sebastian
Sebastian

Reputation: 1912

How to open a Facebook Page using Phonegap and Phonegap Connect

I have an application where I use phonegap connect to login with the native facebook application. Now i want to open a page out of this application. But unfortunately when i open the page in the webbrowser (inapp browser of phonegap) the user is not logged in and has to use his credentials.

window.open("http://facebook.com/SomePage", '_blank', 'location=yes');

I would like to have a possibility to open a facebook page out of javascript in the native application.

Can anyone help?

Thanks!

Upvotes: 0

Views: 1795

Answers (1)

Sebastian
Sebastian

Reputation: 1912

Ok, I know now how to solve this. You just have to use the Facebook namespace like fb:// then everything works (as long as the facebook app is installed).

Upvotes: 2

Related Questions