2011-08-23 68 views
1

所以我在週末做了一個利用Facebook Graph API的Flash遊戲(www.throwthelookingglass.com/ld21爲遊戲和源代碼),並且我想在各種flash門戶上放一個版本,但仍然允許用戶登錄到他們的Facebook帳戶。使用Facebook Graph API的Flash遊戲可以發佈在閃存門戶上嗎?

這可能嗎?

到目前爲止,我已經嘗試了遊戲上傳到Kongregate的,但有一點運氣 - 我每次得到的錯誤:

的SecurityError:錯誤#2060:安全沙箱衝突:ExternalInterface的調用者http://chat.kongregate.com/gamez/0012/2744/preview/Escape.swf?kongregate_game_version=1314001567無法訪問http://www.kongregate.com/games/pdyxs/escape-from-flatland-an-adventure-of-two-dimensions_preview。 () at flash.external :: ExternalInterface $/initJS() at flash.external :: ExternalInterface $/addCallback() at com.facebook.graph :: Facebook/init() at com.facebook.graph ::在flash.events::EventDispatcher/dispatchEvent() Facebook的$ /的init() 在逃生/()創建 在退出/ __Escape_Application1_creationComplete() 在flash.events::EventDispatcher/dispatchEventFunction() 在mx.core :: UIComponent/dispatchEvent() 在mx.core :: UIComponent /組初始化() 在mx.managers ::的LayoutManager/doPhasedInstantiation() 在mx.managers ::的LayoutManager/doPhasedInstantiationC allback()

任何幫助在這裏將不勝感激。

+0

我聽說Kongregate和Newgrounds在Facebook的API中存在一些問題... – BoltClock

回答

2

通過將AllowScriptAccess屬性設置爲none,您將針對不啓用javascript或外部接口的門戶運行。此外,您無法接收來自Facebook的簽名響應,無需將頁面明確傳遞給您。

所以總之,沒有。你不能。

雖然我真的希望Facebook能讓Flash成爲一等公民,並允許通過HTTP進行這種事情。但他們不能這樣做,因爲Flash不能成爲OAuth客戶端。

相關問題