hyperfiction / HypFacebook

HypFacebook : Facebook native extension for Haxe NME
BSD 2-Clause "Simplified" License
45 stars 17 forks source link

Example #1

Closed thepalarlap closed 11 years ago

thepalarlap commented 11 years ago

Hello, I wondered if it was possible to like a page or post a message with this extension. Are there examples that use HypFacebook? I'm a beginner. Thank you for your help

louisbl commented 11 years ago

Yes it is. This extension is a basic wrapper around the iOS and Android Facebook SDK.

You can post a message to a user feed with the feed dialog, like in the feedDialog() function in the README. You create a hash with the properties for this API call (they are listed here, and then you call the api.

I'm not sure that a mobile app is the best place to "like" an object but you can use a graph api call to do that. You must register a og.like action in your app and then use it like any other action like in the graphRequest() function in the README.

thepalarlap commented 11 years ago

Thanks =) Could I have a small sample project that integrates Hypfacebook ? I do not see at all how to integrate in the nmml and use it (I already read the readme and the include file).It would be very helpful.I've just started haxe since last month.

louisbl commented 11 years ago

I just add an example on the wiki: https://github.com/hyperfiction/HypFacebook/wiki/Android-setup

On 06/07/2013 09:46 PM, megamo wrote:

Yeah I'm trying to integrate as well and I'm having issues. If I was a seasoned Haxe programmer the instructions would been enough alas I don't feel they really help those that are new. I followed most of the instructions, and it almost seems to work but my mainactivity can't find com.facebook(this is under android for now). I don't see it in the export either, so I feel like HypFacebook needs to be build, but the libs are there, so I'm not sure what to do next.

— Reply to this email directly or view it on GitHub https://github.com/hyperfiction/HypFacebook/issues/1#issuecomment-19128897.

mourlamstudios commented 11 years ago

louis thank you for this. definitely helps professional nme devs. i've been looking for a lib like this for a long time! you all did an excellent job. v talented.