简体   繁体   中英

Facebook login on Adobe AIR for Desktop

I have some question about Facebook SDK system. My app work on a computer (Adobe AIR).

But I want to connect with Facebook , login , post to wall and logout.

In the past it's work fine. But now, it's not working. And everything about Facebook developer console has changed a lot.

I've 3 questions to ask

  1. How to setting my apps for Desktop application?
  2. Which way is the best for connect with Facebook?
  3. If I don't have "ssl server" , can I work on localhost?

Thank you so much

I've working with javascript API.

:: Step :: 1. Use manual login via load HTML on this URL and redirect to your page https://graph.facebook.com/oauth/authorize?client_id=APP_ID&type=user_agent&redirect_url=YOUR_PAGE

  1. add "LOCATION_CHANGE" event listener after YOUR_PAGE is open. YOUR_PAGE must call Login UI from javascript API.

  2. AFTER login you must check "LOCATION_CHANGE" again.

  3. IF location change, redirect to sharer.php to share your page.

YOUR PAGE MUST BE A DYNAMIC HTML

Upload your photo to server and send the file's name to javascript function on Dynamic HTML. And generate meta data for Facebook Sharer.

*This is a starter step. If you want to work with your virtual keyboard or work with javascript function. Learn about Focus Event and HTML_BOUNDS_CHANGE

Thank you everyone.... and many thanks for @VC.One

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM