Importing Facebook Events - facebook

I am working on a feature which includes Facebook events, but I just read that Facebook API endpoint for getting events are deprecated. But still, I've got one question. How is possible that Evensi.com is still functional?
Also if I missed something, do you know any proper way how to import Facebook events based on location?
Regards,
Michal

I just created a python script, you can see here.
It queries the given facebook page and it's events and puts the data into a MySQL table.
Also, there are some js libraries on Github, so I think it's not impossible.

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.

Caching Feeds from Facebook, Twitter & Instagram

I'm building a site for a non-profit festival where we'd like to have a 'media' page which brings in photos from instagram (hashtag search), updates and photos from Facebook (via festival's albums) twitter posts (by user and hashtag).
I've tried the JS widgets for Facebook and Twitter but wondered about using PHP/Codeigniter to pull the feeds and caching them somehow for better performance and more control over the look.
Would it be best to then store the feed data in a json file on the server or in a MySQL record?
I'm leaning toward a table with a record for each feed that would basically just store the feed URL, JSON, last updated time and an identifier of some sort.
Then I could write a class with the following type of methods:
get_feed($id='facebook_updates', $expiry_time=3600);
Does this seem like a reasonable way to go? or is there a better solution already existing?
I'm not quite sure how I'd work that in with the feeds that need Auth (twitter & Instagram)
bro!
First, it does seem a reasonable way to do it and I don't know any better.
But, if I had to accomplish that, I would break my problem in two:
A server side code to grab the info from the services (that I would
probably store as json so that I could use the info returned
directly) running with cronjobs from time to time.
A client side (server would work too) one to show that info with
customized style.
To work with the feeds that need auth, you'll have to create an app in each of them, authorize it to access your personal account and use it in the code. Never worked with Instagram but the others have good documentation on how to do that.
Finally, with some modification, you may be able to use this wonderful too to help you accomplish your task: http://plugins.in1.com/socialist

Facebook API/Dialogue for Un-Friending people?

Preface
I'm aware a similar question has been asked before, but I believe my request is slightly different so I'm going to go for it anyway.
Existing Questions/Findings
I have read the following articles on SO already:
Unfriending someone through the Facebook API?
Any way to unfriend or delete a friend using Facebook's PHP SDK or API?
Previous queries have focussed mainly on silent/programatic un-friending of a user. I don't necessarily need it to be silent and would be quite happy to use a prompted dialogue box.
Is there anything even close to this, or some hack around I could use?
In one of the articles above, an app is mentioned Burger King 'Whopper Sacrifice' which did unfriend I believe. The reason for it being shut down appears to be the privacy invasion/publicising of the un-friending (which seems a bit harsh!) rather than the un-friending itself.
Example idea/Summary
I am looking for some way to simply (either using or not using a prompt) help the user unfriend someone.
As an example, do you think it would be possible to use some kind of call to an iframe to bring up the dialogue?
No, there's no API or Dialog for this functionality. Users can use Facebook's own interface to remove friends but not via 3rd party apps.
Side note, the user can unfriend someone from that person's timeline, if you want one of your users to unfriend someone for some reason, just link them to that timeline and give them the 'unfriend' instructions
There is only way to add user as friend (Friends Dialog) but not terminate friendship, there is no such functionality in API or SDK-s Facebook provide.

How To: Delete a Facebook Test User

I was wondering if anyone happened to know how to delete a facebook test user. I've been perusing through this site for quite awhile now and haven't been able to uncover anything related besides a single unanswered post regarding deleting a facebook test user associated with 2+ apps. Facebook now offers a UI within their dev site which allows this functionality; however, I'm trying to perform the same operation through a C# script utilizing the Graph API and issuing the relevant HTTP commands. Tried monitoring the requests made through the UI using netmon/Fiddler but wasn't able to uncover anything useful. Help, any & all will be greatly appreciated.
See https://developers.facebook.com/docs/test_users/ - the section marked 'Deleting':
https://graph.facebook.com/TEST_USER_ID?
method=delete
&access_token=TEST_USER_ACCESS_TOKEN (OR) APP_ACCESS_TOKEN
I was not able to get the TEST_USER_ACCESS_TOKEN to work. I did get the APP_ACCESS_TOKEN to work. Here is what worked for me.
https://graph.facebook.com/<TEST_USER_ID>?method=delete&access_token=<APP_ID>%7C<APP_ACCESS_TOKEN>
Use FB graph API as follows:
https://graph.facebook.com/v2.8/{test-user-id}?method=delete&access_token={user-access-token}
You should get the following response:
{"success":true}

Facebook UI documentation

I am trying to create a bookmarklet to process some Facebook data about my contacts, what will possibly require to load another profile pages and see who my friends are.
I am trying to know which urls should I query to get this information. And also how to interact with FB's UI libraries and/or elements.
Is there any documentation for this?
You probably are looking for Facebook JavaScript SDK.
Here is documentation on the FB.ui(): http://fbdevwiki.com/wiki/FB.ui
EDIT: it's updated by user contributions and lately it hasn't been changed much