can't post pictures to facebook anymore ?!

so i basicaly followed your steps regarding how to upload pictures to facebook and posts to facebook

i did everything, and it can’t upload any picture.

it says either #200 premissions premission error, or most of the times it just says nothing and also writes nothing…

the thing is i have all the permissions as you said i even added a “status_update” premission

here is the code:

local function onLoginSuccess() -- Upload 'iheartcorona.jpg' to current user's account print ("listener 3") local attachment = { message = "my family !", source = { baseDir=system.TemporaryDirectory, filename="screenToPublish".. veriableForFacebookPic.. ".jpg", type="image" } } print ("file published as: ".. veriableForFacebookPic) print ("listener 4") facebook.request( "me/photos", "POST", attachment ) end -- facebook listener local function fbListener( event ) print ("listener 1") if event.isError then native.showAlert( "ERROR", event.response, { "OK" } ) else if event.type == "session" and event.phase == "login" then -- login was a success; call function print ("listener 2") local access\_token = event.token print( access\_token ) print ("listener 2-1") onLoginSuccess() elseif event.type == "request" then -- this block is executed upon successful facebook.request() call print ("listener 5") native.showAlert( "Success", "The photo has been uploaded.", { "OK" } ) end end end function \_M.postPicture () print ("going to facebook \> ") -- photo uploading requires the "publish\_stream" permission facebook.login( fbAppID, fbListener, { "publish\_stream", "status\_update" } ) end

as for my build setting permissions here they are:

settings = { orientation = { default = "portrait", supported = { "portrait", "portraitUpsideDown", }, }, android = { permissions = { { name = ".permission.C2D\_MESSAGE", protectionLevel = "signature" }, }, usesExpansionFile = false, usesPermissions = { "android.permission.INTERNET", "android.permission.CAMERA", "android.permission.GET\_ACCOUNTS", "android.permission.RECEIVE\_BOOT\_COMPLETED", "android.permission.WRITE\_EXTERNAL\_STORAGE", "com.google.android.c2dm.permission.RECEIVE", "com.android.vending.BILLING", ".permission.C2D\_MESSAGE", "com.android.vending.CHECK\_LICENSE", }, }, iphone = { plist = { UIAppFonts = { "Narkis.ttf", "ARLRDBD.ttf", "H74.ttf", "MTV-b.ttf", "mtvFont.ttf", }, CFBundleIconFile = "Icon.png", CFBundleDisplayName = "TV Master", CFBundleIconFiles = { "Icon.png", "Icon@2x.png", "Icon-Small-40.png", "Icon-Small-40@2x.png", "Icon-60.png", "Icon-60@2x.png", "Icon-72.png", "Icon-72@2x.png", "Icon-76.png", "Icon-76@2x.png", "Icon-Small-50.png", "Icon-Small-50@2x.png", "Icon-Small.png", "Icon-Small@2x.png" }, UIApplicationExitsOnSuspend = false, FacebookAppID = "334201016747525", CFBundleURLTypes = { { CFBundleURLSchemes = { "fb334201016747525", } } } } }, plugins = { -- key is the name passed to Lua's 'require()' ["CoronaProvider.analytics.flurry"] = { -- required publisherId = "com.coronalabs", }, --key is the name passed to Lua's 'require()' ["CoronaProvider.native.popup.social"] = { --required publisherId = "com.coronalabs", }, ["facebook"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, ["iphone-sim"]=true }, }, }, }

Have you set up the app on facebook, including getting clearance for ‘publish_stream’ ?

You now have to submit screenshots to facebook showing what your app will do with the permissions before you can use them, which is frankly a lot more trouble than it’s worth.

You can use the social plugin to upload photos to facebook on iOS, but it doesn’t support Android yet.

Have you set up the app on facebook, including getting clearance for ‘publish_stream’ ?

You now have to submit screenshots to facebook showing what your app will do with the permissions before you can use them, which is frankly a lot more trouble than it’s worth.

You can use the social plugin to upload photos to facebook on iOS, but it doesn’t support Android yet.