Help with facebook posting from app

Hello,

I was wondering if someone can help me with a problem I have. I´ve been using this tutorial, to integrate facebook score posting to my app:

http://corona.techority.com/2011/04/21/updated-facebook-tutorial-for-iphone/

I added my app id that facebook gave me when i created the app in this section of the code:

local appId = “00000000000” – Add your App ID here in quotes
local apiKey = nil – Not needed at this time

But I cant get it to work, the code works and when I build it to the device and I touch the facebook button, the iPhone does open the facebook app but then it just showme the newsfeed and it doesnt post anything.

Can someone tell me how can I fix this, Trying to make it work for two days with no luck.

It is worth mentioning that in the app settings of the facebook side in the native iOS App Section I only added the bunddle ID I created for the provisional profile i am using to build the game, I left the iphone app store id blank because i havent upload my app yet.

Any help will be greatly appreciated.

Thank a lot [import]uid: 182564 topic_id: 31508 reply_id: 331508[/import]

I do believe the appstore ID is a requirement. If you already have a different app in the appstore you can use that for now or you can go ahead and create your app in iTunes Connect and use the ID it gives you. [import]uid: 147305 topic_id: 31508 reply_id: 125880[/import]

Hello burdenShank,

I used the id from another app in the facebook app settings, but still no luck. I get the same results Do you know if there is any other tutorial that explains twitter and facebook posting from the app? Just to be sure the iPhone App Store ID that facebook asks for is the one that says apple id in the identifiers section of the app in itunes connect right?

Thanks a lot…

Dash [import]uid: 182564 topic_id: 31508 reply_id: 125882[/import]

Anyone? [import]uid: 182564 topic_id: 31508 reply_id: 125884[/import]

Hi.

Make sure you have something like this in your build.settings:

[lua]CFBundleURLTypes =
{
{
CFBundleURLSchemes =
{
“fb00000000000000”, – replace 00000000000 with your facebook appId
}
}
}[/lua]
below should do a login then create the dialog box to post to fb.

[lua] function fbListener(event)
if ( event.isError ) then
print(“facebook error”);
end
if ( “session” == event.type ) then
if ( “login” == event.phase ) then
print(“login fired”)
facebook.showDialog( “feed”, {
message = “My message here”,
link = “www.myurlhere.com”,
picture=“www.mypictureurlhere.com/pic.jpg”,
description=“This is my description”
})
end
end
end

local appId = “00000000000” – put app id here.
facebook.login( appId, fbListener, {“publish_stream”})[/lua]
[import]uid: 147305 topic_id: 31508 reply_id: 125907[/import]

Thanks a lot for the help.

But still no luck, does anyone have a tutorial or some sample code that i can follow to post scores to facebook on android and iOS. Getting a bit frustrated 3 days no luck.

Thanks a LOT in advance.

Dash [import]uid: 182564 topic_id: 31508 reply_id: 125940[/import]

Why don’t you post your code? It would be easier to help you find the problem. [import]uid: 40033 topic_id: 31508 reply_id: 125954[/import]

dashnevada wrote:
Just to be sure the iPhone App Store ID that facebook asks for is the one that says apple id in the identifiers section of the app in itunes connect right?

Yes, the App Store ID needed in FB is the App ID in iTunes Connect. If you have an app already published in the App Store you can use that App ID, or you can use any App ID that is listed in the URL of any app found in the App Store.

I believe the App ID must be “live” in the App Store, you can then edit FB with your Apps ID when you go “ready for sale”.

Hope this helps,

Nail
[import]uid: 106779 topic_id: 31508 reply_id: 125965[/import]

I do believe the appstore ID is a requirement. If you already have a different app in the appstore you can use that for now or you can go ahead and create your app in iTunes Connect and use the ID it gives you. [import]uid: 147305 topic_id: 31508 reply_id: 125880[/import]

Hello burdenShank,

I used the id from another app in the facebook app settings, but still no luck. I get the same results Do you know if there is any other tutorial that explains twitter and facebook posting from the app? Just to be sure the iPhone App Store ID that facebook asks for is the one that says apple id in the identifiers section of the app in itunes connect right?

Thanks a lot…

Dash [import]uid: 182564 topic_id: 31508 reply_id: 125882[/import]

Anyone? [import]uid: 182564 topic_id: 31508 reply_id: 125884[/import]

Hi.

Make sure you have something like this in your build.settings:

[lua]CFBundleURLTypes =
{
{
CFBundleURLSchemes =
{
“fb00000000000000”, – replace 00000000000 with your facebook appId
}
}
}[/lua]
below should do a login then create the dialog box to post to fb.

[lua] function fbListener(event)
if ( event.isError ) then
print(“facebook error”);
end
if ( “session” == event.type ) then
if ( “login” == event.phase ) then
print(“login fired”)
facebook.showDialog( “feed”, {
message = “My message here”,
link = “www.myurlhere.com”,
picture=“www.mypictureurlhere.com/pic.jpg”,
description=“This is my description”
})
end
end
end

local appId = “00000000000” – put app id here.
facebook.login( appId, fbListener, {“publish_stream”})[/lua]
[import]uid: 147305 topic_id: 31508 reply_id: 125907[/import]

Thanks a lot for the help.

But still no luck, does anyone have a tutorial or some sample code that i can follow to post scores to facebook on android and iOS. Getting a bit frustrated 3 days no luck.

Thanks a LOT in advance.

Dash [import]uid: 182564 topic_id: 31508 reply_id: 125940[/import]

Why don’t you post your code? It would be easier to help you find the problem. [import]uid: 40033 topic_id: 31508 reply_id: 125954[/import]

dashnevada wrote:
Just to be sure the iPhone App Store ID that facebook asks for is the one that says apple id in the identifiers section of the app in itunes connect right?

Yes, the App Store ID needed in FB is the App ID in iTunes Connect. If you have an app already published in the App Store you can use that App ID, or you can use any App ID that is listed in the URL of any app found in the App Store.

I believe the App ID must be “live” in the App Store, you can then edit FB with your Apps ID when you go “ready for sale”.

Hope this helps,

Nail
[import]uid: 106779 topic_id: 31508 reply_id: 125965[/import]