Hi, recently i had Facebook share work properly where it displayed the dialog popup in landscape view across all device sizes. However this week I tried my app under iOS 8 and the Facebook popup displays in portrait mode and rotated sidewards to fit the screen length. I really need to fix this but am not sure its a problem with my code.
require("gameconfig") facebook = require("facebook") --used for sharing the score on facebook
local facebookListener transition.to(homebtn, {time=50, display.contentCenterY+130 }) facebookListener = function ( event ) local linkUrl = facebook\_share\_url local picUrl = facebook\_share\_pic if ( "session" == event.type ) then if ( "login" == event.phase ) then facebook.facebook.request( "me/friends" ) facebook.showDialog( "feed", { name = "I scored " .. miles .. " miles on testApp. Can you beat it!?", caption = "How far can you go?", description = "Download testApp now and compete with me!!", link = "www.testApp.com", picture = picUrl }) end end end facebookButtonListener = function ( event ) facebook.login( facebook\_app\_id, facebookListener) end
gameconfig.lua:
facebook\_app\_id = "xxxxxxxxxxxx (actual id is here)" facebook\_share\_url = "http://testApp/1310552" facebook\_share\_pic = "http://game-website.com/image.png"
build.settings:
--Facebook Implementation, remove the comment --[[]]-- to use FacebookAppID = "{actual ID here}", -- replace XXXXXXXXX with your facebook appId CFBundleURLTypes = { { CFBundleURLSchemes = { "{Actual ID here}", -- replace XXXXXXXXX with your facebook appId } } } }, }, plugins = { ["facebook"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, ["iphone-sim"]=true }, }, ["CoronaProvider.gameNetwork.google"] = { publisherId = "com.coronalabs", supportedPlatforms = { android = true }, }, }, }