我開發了一款適用於android的flash遊戲。現在客戶的要求是連接Facebook等社交媒體。含義:添加一個按鈕,從該應用程序本身在Facebook上登錄。它怎麼可能?如何從Adobe Flash遊戲登錄Facebook?
任何人都可以幫我嗎?
我開發了一款適用於android的flash遊戲。現在客戶的要求是連接Facebook等社交媒體。含義:添加一個按鈕,從該應用程序本身在Facebook上登錄。它怎麼可能?如何從Adobe Flash遊戲登錄Facebook?
任何人都可以幫我嗎?
1)註冊Facebook上的開發者帳戶。
https://developers.facebook.com/docs/plugins/registration/
2)創建一個新的Facebook應用程序。
https://developers.facebook.com/apps/
3)下載Facebook-的ActionScript API和libs文件夾中的文件名爲.swc存儲在您的項目。 http://code.google.com/p/facebook-actionscript-api/downloads/detail?name=GraphAPI_Mobile_1_8_1.swc
4)寫facebook登錄代碼。
也許這些鏈接可以幫助你。
http://rjdesignz.com/adobe-flex/facebook-api-in-flex-mobile-air-app/
http://today-only.net/facebook_mobile/
註冊爲一個Facebook顯象>註冊的應用程序。 使用Facebook SDK 3.0,它有一個如何設置和登錄的例子。你必須把(從我的代碼COPYD):
login = (LoginButton) vju.findViewById(R.id.login_button);
<com.facebook.widget.LoginButton
android:id="@+id/login_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginTop="120dp"
android:layout_marginBottom="30dp" />
,這在layout.xml
對於那場比賽我沒有創建獨立的。至於文件。它集成在關鍵幀上 –