Actionscript 3 Facebook integration - facebook

I am developing a flash game and I want to integrate it with Facebook. It should be very simple integration. My app only need username and e-mail address. I searched the web not I still don't know how to do it. It seems to me very complicated.
All I want is to connect my app to Facebook through Actionscript SDK, with few simple functions.
Can someone help me with a code to do that...I'll be very thankful guys :-)

Well, it's a general question, but here are a few links that might help steer you in the right direction. The first link has the SWC library and some examples:
Facebook ActionScript API resources:
libraries and examples
API documentation (though fairly sparse)
Adobe page
On their page, Adobe links to a tutorial / walkthrough for building a mobile Facebook app that's pretty helpful, though it expands on a desktop-based article and references it regularly, so that can be a bit confusing, but it does get the job done.
Then you need to understand the Facebook Graph API - basically Facebook passes around objects that contain data pertaining to the user, their friends, etc (and of course, passing around this data is subject to the permissions your app has setup). Facebook provides an online tool (Facebook Graph API Explorer) that let's you explore these objects for your own account.
Pouring over this information, I got my first flash-based mobile app talking to Facebook in a few hours. There you go, ask a generic question, get a big swath of links to read that are only semi-related to your question. =D

Related

collect picture from comments in facebook page status

I currently need to collect pictures-comment (someone comment by pasting a picture) from facebook page group
I have done some research and find that
1.Support for this hasn't yet been added to the Graph API and as with many of the other messaging APIs, it's currently only avaialable for testing (i.e you must be a developer of the app to use it presently)
from
View attachments in threads
2.You have to use the old php SDK until graph supports attachments
from
Posting Attachment Facebook Graph API
could any one provide some codes to me?
I need to know
Are the two approaches really works?? If yes, then... If no, I guess i will need to write/find a crawler (but it again sounds difficult as facebook group page is dynamic web)
What should I do if I want to follow 1st approach?
Should I register as developer and set up an app and...? (I have no experience in setting up facebook app and would appreciate any useful step-by-step tutorial)
If I am going the 2nd approach (php SDK), are there are tutorial as I have no idea what should I do next.
I know java, c++ and little js but facebook apis are something really new to me.
Really appreciate any help.

Creating new facebook apps with graph api?

To my knowledge it isn't possible to create new apps with the graph api from facebook.
But i have seen several tab makers which are apparently able to generate new apps (one of them is the timeline tab maker from 247GRAD). Is this huge number of apps really manually generated?
I would appreciate it very much if someone could give me a hint, how those apps work.
It is not possible to create an application using Graph API.
What you see in the case of Page Tab Applications is generally one application (or several just to have different application icons/images) displaying different content based on page id (from signed_request) for Page is running on.
Many companies are today oriented to design Facebook apps (or tabs) to be integrated in profiles, groups and fan pages. Well Facebook encourages apps development by making easy to do with Graph API with any programming language like PHP5 at first, jQuery, JavaScript, Java, XML...
And Apps or tab makers as you said are developed to help to generate new apps, I think it would boring for a developer to create an app for form contact everyday for each new customer, so with some magic (sure with any programming language) he'll can generate many apps.
So it's a Facebook app that creates Facebook apps!
You could learn about Facebook Graph API from Facebook Developers Documentation on https://developers.facebook.com/docs/reference/api/
And learn this tutorial from Facebook on https://developers.facebook.com/docs/opengraph/tutorial/ or from an other web sites (Try always to read new tutorials because Facebook API always changes).
Also you can read books, I advice to read this at first : http://books.google.tn/books?id=MnbpygAACAAJ&dq=inauthor:%22Shashwat+Srivastava%22&hl=en&sa=X&ei=c5RoT81ek_fhBNXZgbcJ&ved=0CC8Q6AEwAA and second, http://books.google.tn/books?id=Ec9OkpsrCf8C&pg=PA131&dq=facebook+graph+api&hl=en&sa=X&ei=tpBoT5uKG-OO4gTb-ajaAg&redir_esc=y#v=onepage&q=facebook%20graph%20api&f=false
Don't hesitate to ask.
Best regards,
Ali

How to Integrate Website Game Into Facebook?

I have a friend who has completed making a website game using
BASIC/ASP. We're talking the other day and we both think that it would
be cool to make this game available on Facebook.
But the problem is I am not sure where/how to start. Is it
even possible to integrate BASIC/ASP web applications into Facebook
because as I understand Facebook uses Java.
Can anyone gives us a clue or guide on how to approach this
intention?
I'm not sure where you got the idea Facebook uses Java from as this is not the case. Perhaps you were thinking of JavaScript? Nonetheless it is entirely possible to host your game on Facebook - as long as you can already host it on any website. Since Facebook gives you the ability to present the user with content within an iFrame.
Essentially you just need to get your game hosted on a website somewhere and then use this reference to host it on Facebook. If you want to leverage Facebook features such as invites etc then make sure to have a look around the Facebook developers website.
Depending on the route you want to go:
Here's a guide on how to make a canvas page:
http://developers.facebook.com/docs/guides/canvas/
Here's a guide on how to make a game for facebook:
https://developers.facebook.com/docs/guides/games/

Build a facebook app or web app?

I want to develop an online application and I am considering EITHER building a website with community features built in or building ONLY a facebook app. I was wondering if other people have had to make the same decision and what things I will need to consider.
The website I want to build will be an educational portal where people can make and take tests online
I disagree with some of the other answers here. There is a huge difference between a) trying to advertise a new place on the web and b) trying to advertise a new functionality of an existing place. Even if this new website would offer a very tight integration with Facebook and some other social platforms. Keep in mind: facebook users really don't like to leave facebook, no matter what the reason would be. That's why the click-through rate for the advertisements is so embarrassingly poor: http://en.wikipedia.org/wiki/Facebook#Company
That said you can of course always do both: build a website and offer the same functionality through a facebook app. However my opinion here is that if you're application only offers its users a single functionality, you'll be better off just doing the latter.
What exactly is the advantage you expect by creating a Facebook-ONLY-App for that?
If it's only about taking tests you can still build a "normal" portal and include some of the Facebook-functionality through the JavaScript-SDK, like posting to the wall, Single-Sign-On, find your friends and so on. This way the user still has the choice if he wants to connect with Facebook or not. This way you also don't minimize your userbase to Facebook-users
(yeah I know, "everyone" has Facebook these days... ;) Still not everyone wants it to be connected to every single site he's using through Facebook)
Considering this comment:
Well I guess its easier for people to recommend my app if it is a facebook app, is the main reason I want to know if facebook is a good option – Zubair Mar 3 at 14:51
Build a website and then add the Facebook 'like' button. See: http://developers.facebook.com/docs/guides/web/#plugins
You should put a Twitter button as well:
http://twitter.com/about/resources/tweetbutton
In my opinion you have to develop both. First develop you website. Although facebook is having millions of users But in my opinion you cannot implement every thing as freely as you can in your web application than facebook application. You should have a website and a page on facebook. You can integrate other facebook social plugins on your website to interact with facebook.
From monitization point of it is easy for new users on website than application on facebook. Other reason website especially related to educational purposes have a huge click through rate which you cannot find on facebook application advertiser.
What is the goal of the website?
If its to make money dont do a facebook app, you have far more control of your site by designing it entirely yourself.
If you want social networking features there are plenty of APIs you can tie in to which will provide you with functionality and allow you to link into facebook / twitter etc.
A website would look more professional, it would allow you to gather statistics on unique hits, revisits etc, having your own database of users means you can gather information and market your site more specifically ( which users took which tests).
A website also allows you to monetize it by adding advertisement if that is your goal, and you can gain search engine rankings.
If you want to get publicity for your website you can use facebook by creating a group / page for the site and promoting it that way.
Also your own website wont leave you vulnerable to changes in Facebook, what if you put in all this work and in a year the terms change and a portion of your app is now in violation of the terms. What if you want to add X feature and facebook wont allow it?
Basically your site = 100% in your controll, thats a big advantage to you. With facebook you loose that advantage but maybe gain a little in being able to use more of their features. Personally id always go for my own site.
You should go for the website first, then add the social elements in the website.
Like you can enable users to login using there facebook credentials. Like/share Button.
And later on, you can also go for the facebook app, when you want to shoot for much much more traffic. Therefore, whenever you think that you have figured out what exactly you want out of your application then only go for it, otherwise try your options with website. Because once your facebook app is up, you will get hell lot of traffic.
Let me know if you need help in creating facebook application or social elements enabled website. I have built an Facebook Easy API on top of all facebook features, which will enable you to easily access anything on facebook and meanwhile reducing your work effort.
You first build it like web app and use Graph API and FBConnect to use Facebook functionalities. Then you need to create a facebook app version also because getting facebook traffic is also required. People from facebook most like come to facebook app then to another web.
You will not need to convert it to facebook app, it will be just less in width and it would be a facebook iframe app. as I some where read that facebook is depreciating fbml and iframe app is recommended.
So now you can make both things, as I think , test app can have flexible layout so that you don't need to change width for facebook iframe. So you can both things by doing one.
thanks
i'm pretty sure many people will not agre with me, but IMHO you should focus on build a good Web-App that work well also on Mobile-Phones. keep it simple, intuitive, responsive, lightweight, cross-browser and straight to the point.
if your only concern is about "recommend your app to other people" make it SEO and Multi-Language too. google will do the rest.
then if you want make your app bold, slowly and planty of useless stuffs start to add all the facebook widget you want.
PS: i'm also on facebook, twitter,
flickr, google etc etc, i'm also
sharing photos, links and usefull
stuffs, my google rss reader is full
of links with tons of nice things, well i
have never had a minute to look at it, when i need something i just start searching google
I agree with most of the answers here—a native website is the way to go. Personally, I don't trust/like FB apps. Dunno what they do, and given the number of scammers out there and FB's lack of responsibility (IMO), I rarely if ever use an FB app.
Creating the website gives users choice about whether they want to share results/integrate with their FB wall/profile. Users don't like to be forced into something.
And in the spirit of adventure that is typical of SO, it's always more fun to build your own website than to build a template-based (sort of), boring and nearly irrelevant (drowning in a sea of other poorly made apps) FB app. But that's just my 2¢
In your case, I would do a hybrid. First, build your website, but integrate it with Facebook via connect. This way you can concentrate on building your value added services and let Facebook worry about the community.
I would also not ignore the Facebook app. Now, with iframes being fully supported on Facebook, you can adapt your existing site to work within Facebook with minimal effort, as long as you keep this requirement in mind when building your original application.

How long would it take to integrate Facebook Connect with a website?

I have a website where users can buy deals posted by the site owner/admin and I would like to integrate Facebook Connect with it. Can you please answer the following:
What tasks are involved with integrating Facebook Connect?
How difficult would it be for a programmer to integrate Facebook Connect?
How long would it take for an average programmer to integrate Facebook Connect?
I think it's a bit difficult, yes, but it's not impossible. It shoud be about 2-5 days to study, understand, make tests and make it works (it also depends on how much you know of the facebook platfrm):
Here is a tuorial I wrote:
http://www.barattalo.it/facebook-connect-tutorial/
it explains how to give the facebook login and how to post on users' wall.
There are multiple good tutorials available. I would say an average programmer (with some familiarity in JavaScript) would be able to do this fairly easily.
Facebook Connect Wiki
How to quickly add Facebook Connect
I have integrated Facebook Connect into 2 sites and the time it took varied from 3 days to 2 weeks. The time requirement depends on the size of the application you are integrating. It only took me 3 days to integrate Facebook Connect into a new site which did not have any existing users.
Putting in a Facebook connect or login button can be pretty easy now since there are some copy-and-paste solutions out there. If you're looking for a copy/paste solution that does some pretty simple members-only page protection, you can try this Facebook Login tool. It's free and gives some basic analytics, I think.
My point of view Facebook connect can be implemented by average programmer with in 2-3 hours If you aware about Facebook document and sound knowledge of API Key Secret.
Following documents that help for integrating Facebook into websites.
Document use PHP for server-side programming and HTML/JavaScript for client-side code. These examples are very straightforward and easily translatable to other languages.
Facebook Developer Tutorials.
This article shows few steps that describes how to integrate Facebook Connect into your
existing site.
efpa is brilliant for this, its easy to use and saves you hours, it would take you less than 20 min, there is a really good youtube tutorial on this, they use efpa to create a web application, let users connect using their facebook accounts and then present them their home feed, from creating a facebook app to writing the code in 20 min;
http://www.youtube.com/watch?v=ri8io0bmKOc
btw efpa stand for (Easy Facebook PHP API), the library was written to make facebook intergration easy and usable by anyone. Check out their documentations page http://labs.gurron.com/projects.php?proj=efpa&pg=docs