Facebook question

So my question is… for PROFILE_ID we must use “me” but for OBJECT_ID, EVENT_ID and ALBUM_ID we must use what?

I’m trying to make a like and checkin button but I can’t make it work

I already seen GRAPH API, Facebook API but I can’t make it work

maybe someone have succeeded in integrate this functions from facebook
thanks
[import]uid: 23063 topic_id: 17184 reply_id: 317184[/import]

no one knows how facebook works? :S [import]uid: 23063 topic_id: 17184 reply_id: 64882[/import]

How to make a like button; http://www.crawlspacegames.com/blog/likey-likey-integrating-facebook-like-buttons-corona-sdk/

Hopefully you can go from there.

Peach [import]uid: 52491 topic_id: 17184 reply_id: 64949[/import]

THANK YOU PEACH!

realy

I will look into this URL

for another stuffs of facebook like “checkin” and “comment” a post, you know how to do?
again thank you so much!

Dhennrich [import]uid: 23063 topic_id: 17184 reply_id: 64954[/import]

I am not at all familiar with the check-in stuff, I’m afraid. I haven’t seen it done. (That doesn’t mean it can’t be done, I’m just not totally sure - you’d have to look at the Facebook API and try it.)

For commenting on a post I do not believe this is possible - even in the Facebook API I don’t recall anything like this. Have you?

Peach :slight_smile: [import]uid: 52491 topic_id: 17184 reply_id: 64992[/import]

/OBJECT_ID/comments – Comment on the given object (if it has a /comments connection) – message
I guess it’s possible but again I can’t make it work
for that reason that I write here to know what I need to put in “…/coments” like “me/feed” get it?
http://developers.facebook.com/docs/reference/api/

the checkin I realy don’t know what’s wrong, It’s “me/checkins”.

I can show you my code for checkin if you want. I don’t need to have anything in my facebook like an app to use checkin funcion right?

and another thing, can I use a “fan page” ID instead my appID?

thanks peach [import]uid: 23063 topic_id: 17184 reply_id: 65061[/import]

Hey again,

Like I said I don’t do a lot with Facebook beyond the norm, which is wall posts or I guess a “like” button, which the link above is for.

It might be worth asking Jonathan Beebe - I know when I first started using Facebook with Corona he was able to point me in the right direction several times :slight_smile:

For the App ID - no - it needs to be a real app, you can’t use any other ID (including fan page, etc) - must be real app ID.

Peach [import]uid: 52491 topic_id: 17184 reply_id: 65157[/import]

how can I contact Beebe did you know?

and thanks for support peach, you are always in front of line
thank you [import]uid: 23063 topic_id: 17184 reply_id: 65160[/import]

Thanks Dhennrich, I do my best - although was disappointed not to be able to assist with the check-in part of this.

You can find Jon on Twitter here; http://twitter.com/#!/jonathanbeebe

Don’t harass him though :wink: Just see if he knows a little more about this than I do. (As I said he was a huge help to me when I couldn’t figure FB out back in the day.)

Peach :slight_smile: [import]uid: 52491 topic_id: 17184 reply_id: 65210[/import]

I’m have the same problem. Can’t get the LIKE button to work. I can get the users like with:
facebook.request( “me/likes”);

I can also post an image to FB with:
local attachment = {
message = “Some text!”,
source = { baseDir=system.DocumentsDirectory, filename=“localimage.jpg”, type=“image” }
}
facebook.request( “me/photos”, “POST”, attachment )

Have tried with this, it doesn’t work:
local attachment = {};
facebook.request( “myFbPageID0000/likes”, “POST”, attachment );

Peach, the link about creating a FB button doesn’t work with graph API. It just opens a webView with a FB page, forcing the user to again log in. Although he is already logged in via SSO. [import]uid: 101722 topic_id: 17184 reply_id: 113649[/import]

Just found out you can’t like a fb page via graph API. You can only like a photo or post.

Now I have a another question. I can get the info if a user has liked my fb page. If he likes my page, I give him some special power in my game. So I would like to open my FB page for him, where he can see the Like button.

The problem is that if I open the facebook url with system.openURL( ) or with native.showWebPopup() it always requests username+password. But the user is already logged in via SSO/native app credentials. [import]uid: 101722 topic_id: 17184 reply_id: 113655[/import]

Solved It!

If the FB app is installed on the device, then you can open your FB page with the FB app by calling
system.openURL( “fb://profile/your_fb_page_id” ). This way the user is authenticated via the FB app, so no need for log in.
For example:
system.openURL( “fb://profile/267839669921083” ) -> this wil open our Frisky Pig Studios FB page.

Works on Android and iOS on version 2012.840

Peach, you should include this in the docs (facebook and system stuff). It’s been driving me mad the past 2 days. [import]uid: 101722 topic_id: 17184 reply_id: 113735[/import]

Great info friskypig! Thanks for sharing, I’m going to start exploring FB this week.
Nail [import]uid: 106779 topic_id: 17184 reply_id: 113780[/import]

Hey there, sorry, being the weekend the forum is slightly less active :wink:

I will make a note of this as something we could use some documentation for - thanks for sharing it!

Peach :slight_smile: [import]uid: 52491 topic_id: 17184 reply_id: 113781[/import]

@friskypigstudios - I’m just checking this now, but seriously I could kiss you! The whole sign-on again just to like my app has been bugging me for days, had so many troubles with the webPopup solution and just wasn’t liking the fact that SSO signed my user on and then needed another sign on to ‘like’ the app.

Somebody get this man a beer - and make sure the note gets appended to the FB doc page!

Edit: So its working pretty well, thanks again frisky pig - one thing however, after liking the user is stuck in the FB app, have you got it that it reverts back to your app after the user likes? I’m presuming this is probably impossible and needs the user to switch back?

Thanks again - you truly are a legend! [import]uid: 33275 topic_id: 17184 reply_id: 116525[/import]

I agree with @SegaBoy about the GREAT solution offered by @friskypigstudios.

It would be documented (right into the Corona Docs) as I see it saving so much @Peach `s time answering our questions that concern Facebook “things”.

Cheers,
Rodrigo. [import]uid: 89165 topic_id: 17184 reply_id: 116561[/import]