将Facebook页面添加到Corona SDK

I've created a template app in corona SDK , and in the menu.lua file , I've added buttons to navigate between the lua files , I want one button to redirect me to my facebook page , so does anyone how to add a facebook page into Corona , and how to add a php or html script ?

Thanks in advance .

you can use native.webView to open the web and request to go to facebook page. but if you need to get data or publish to wall corona support facebook you can visit this link and see if this can help you because it's unclear to me what will you do if you add facebook to your app

http://www.coronalabs.com/facebook/

You have several options.

  1. Open a the page in a native.newWebView as suggested above.

  2. Open the device's web browser using system.openURL("http://facebook.com/path_to_page"). This of course will leave your app for the web browser.

  3. Open the page in Facebook's native app:

    if system.openURL("fb://page/7844589738") then -- successful opening else system.openURL("http://facebook.com/path_to_page") end

This will fall back the web browser if it can't open the page or if the app isn't installed. The number is the Facebook Page ID Number.