Is there a decent PHP Facebook Connect example anywhere online? - facebook

I have a very simple php site that I'm wanting to add facebook connect to. I have searched to and fro to find out how to do this. Even the developer docs at facebook are apparently wrong. I see many seasoned programmers replying that the docs are outdated and some of the methods won't work.. how one should create a new solution for this part, etc...
I know that Facebook changed a lot about the way facebook connect just before 2011. Isn't there someone out there who could provide a working example on how it's done? I will give my left leg to someone that could provide an updated and working tutorial.
Thanks.

The PHP Example shows you exactly how to do this. Short, redirect to $facebook->getLoginUrl() and then call $facebook->getUser().

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.

How do I carry over previous "likes" to new, upgraded domain address? How do I link website with the FB page?

I have very little knowledge how the plug ins work and really need help. I have a blogging website that I just upgraded to a regular domain address. The original site was http://meltfitness.blog.com. now the domain address is http://meltfitness.net. I'm trying to find out if there is any way TO NOT LOSE the previous likes the pages had from the original domain. Is there a way to carry those over to the new domain? This problem only seems to be happening on the individual posts; not the general site itself. ALSO, when someone clicks "like" on my site/page/posts, it is not carrying over into their "Likes" section on FB. It DOES seem to show up as a recent like, but it doesn't intertwine with my meltfitness.net FB page. PLEASE, PLEASE, PLEASE HELP!! I've spent hours and days trying to figure this out but I'm simply not tech savvy!
I have a feeling you might be unable to do this.
Read:
www.allfacebook.com/likes-domains-transfer-2010-08
and
uk.answers.yahoo.com/question/index?qid=20110628163905AAPh02C
I can't find any Facebook documentation stating that is impossible.
You might be able to get help from Facebook at http://www.facebook.com/help
Good luck

I still not clear about the publish.stream function.. help me please

I still not clear about the publish.stream function.. Anybody please help me, how to setting up the app authentication, so that we can publish a new status update to our new app user.. thanks..
You should always show us what you've tried and what is no working. Publishing to user's stream is one of the easiest things to do with graph api and a bit of reading of the documentation shows you exactly how:
Read about authentication - http://developers.facebook.com/docs/authentication/
Read about permissions - http://developers.facebook.com/docs/authentication/permissions/
Read about the news feed - http://developers.facebook.com/docs/reference/api/post/
putting all those three together should be easy for anyone who has done a bit of web app development. Once you start and a particular thing is not working for you, you can post ask for help with the details, but no one here is going to write the code for you...

Facebooks API. What should i choose ? (walltext inside)

I'm a little bit lost.
So, I'm not really trying to integrate facebook with my webproject, but in some point I need to get some information of a fb account... like friend's email, name, status and some other things...
From what I read so far, it seems that it's no longer possible to get friends' email and some other information without the friends authorize you app to do that, at least when using the last api from fb (graph api)... so I thought that was something impossible to do, until I see some sites (like yahoo) offering a possibility to import your contacts from your fb account without his friends authorize. Does anyone know how they do that?
I tried using other apis, like facebook-java-api, restFB, and others but in all cases I'm getting some kind of error... so if someone could at least give me a direction or something like that... have you done this? or know how to? using which api?
some info: I'm developing in Java with Eclipse, using tomcat as my web server.
well it's a little bit confusing since its not a technical issue, but if someone could help me pointing some direction I could tell each error i got when trying to go this direction or something like that.
You dont HAVE to use an SDK at all... Basically the only URL you need to be aware of is graph.facebook.com and you can just make HTTP requests to that URL. You might want to look into the facebook connect feature too.

fb-walls module for drupal

I'm learning my way around drupal a little bit by making someone a site. I'm asked to display facebook wall posts in a block.
I found this module. Now I have no clue how to get started on this.
What I do know is that in drupal>admin>configuration>facebook-wall I need to fill in an application ID of the wall and then the secret code. But I have no clue on how retrieve that. I searched here in SO and using google but all I'm lead to is the facebook developer's pages where it's talking about app creation and developer's stuff I don't understand (eventhough I know a little basic php).
I simply don't know where to start looking, so I guess all i'm asking is for a little more understandable resource to figure this out.
You would want to start here
https://developers.facebook.com/
And since your developing for a website you would want to click the website option, which brings you to here.
https://developers.facebook.com/docs/guides/web/
If you read that page, not even a quarter of the way down, you would see something about Authentication... Which in the first paragraph makes mention of your AppID, and gives you some other links to follow.
https://developers.facebook.com/docs/authentication
Which talks about how the authentication process works, and then there is
https://developers.facebook.com/apps/
Which is used to register you application, which the paragraph it is linked in mentions you need to do in order to use Facebook on your website (which is what your trying to do). Clicking on that link should be pretty self explanatory at that point as to how to get your AppID and Secret.
There you go, I have reduced the amount of reading you now need to do to a level that should be manageable....
Hope this helps.