Facebook API/Dialogue for Un-Friending people? - facebook

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.

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.

Store data of people who clicked on a button on Facebook

I would really appreciate some help with the Facebook application I currently work on.
I developing a simple Facebook application, and I need to store the data of the people, who click the "I want to win button". I'm not sure if I should use plain, old vanilla PHP, or if the Facebook API provides some simple way to do that, so I would be really glad for some ideas about this.
I read about the topic, but I can't really "see the Matrix" yet, so every answer is appriciated. Also I'm more interested in ideas and not the implementation, as I'm fairly confident in my programming skills.
Thank you everybody!
Richard
You will definitely need to use an external db, coz facebook will not store the data for you. However facebook does store the connection that a user makes with the app, i.e. when a user gives some(even basic) permissions to your app. Hence when an old user comes to your app you can know which, and if it is an old user.
Facebook sends your entry script a signed_request, which contains data about the user visiting your app, this request will have a user_id field only if the user has made the connection/authorized your app, hence you know if it's an old user or new.
Once you have the user_id you can call the graph api to get info about the user. In the php SDK you can easily call $facebookObject->api('/me','GET'); to get user info.
You can easily call the functions anytime, so if you want to make a call when a user clicks your button, you can do that.
Check out the links i have included, thoroughly, you'll get the idea.

Where are the Friendselector changes?

We are making a Facebook app and want to integrate Facebook Friendselector.
The guys who are making the app tell me that starting 1/4/2012 we can only invite 1 friend at a time. Is this true? And what can we do about it? We want to select multiple friends.
I'm not sure where those "guys" get their info, but there's nothing about this in the Developer Roadmap, or in the documentation of the Requests Dialog itself.
Maybe they were referring to the Send Dialog which indeed can only be used for one friend (though the user can then add more on his own), but even if they were talking about this dialog, then you don't have to use this one, you can stay with the Requests Dialog.

How do I import facebook friends from the another website

I am looking for a way to connect to facebook by allowing the user to enter in their username and password and have our app connect to their account and get their contacts so that they can invite them to join their group on our site. I have written a facebook app before, but this is not an app as much as it is a connector so that they can invite all their friends or just some to the site we are working on.
I have seen several other sites do this and also connect to Yahoo, Gmail and Hotmail contacts. I dont think they are using Facebook Connect to do this since it is so new, but they may be.
Any solution in any language is fine as I can port whatever example to use C#. I cannot find anything specifically on Google or Facebook to address this specific problem. Any help is appreciated.
I saw a first answer get removed that had suggested i might need to scrape the friends page. The more I look around, this might be what i need to do. Any other way i think will require the person to add it as an app. I am wondering how a answer can get removed, maybe that user deleted it.
Try This
Not sure if its possible explicitly but there are indirect ways to do it!!!
Here is another article that seems to cover what you want to do http://facebook-developer.net/2008/02/20/allow-your-users-to-invite-their-friends/

Like a Page, Newsletter Opt-In and Questions

first time Facebook developer so was hoping for some guidance. Been given a very brief spec:
Requirement is to run it where fans have to give email (so that we can
contact winners) with opt in for newsletter sign up and also must FB
like VF to be entered into prize draw. There will be options to choose
from. They choose one and can't vote more than once.
So I'm thinking about a Facebook application that sits as a tab on the facebook page. If the user hasn't "Liked" the page, they'll be encouraged to "Like" the page in order to proceed.
If it's liked, they'll have an option to opt into our newsletter. They will also be allowed to answer one question with one answer. When they submit it, they will then be entered into a competition.
If they pick the "right" option, we will send them an email telling them so.
Right - does this sound fairly straightforward? Are there any guides, examples or tutorials that could help? Am I going about it in the right way?
Many thanks in advance,
JJ
That sounds very straightforward and you are going about it in the right way.
The best tutorials and examples can probably be found in the Facebook Developers documentation and in the example files within the PHP SDK (http://github.com/facebook/php-sdk/)
To find out if the current viewing user has liked the page or not check out the signed request that Facebook passes to your app tab. It contains this and a lot more useful information http://developers.facebook.com/docs/authentication/signed_request/
What you have is pretty much how the majority of companies are pushing forward with Facebook. They are driving up the Like count by forcing users to Like the page before getting to their goodies. There are lots of examples on the internet as to how to create a page which checks if the user likes the page. As you've not stated what programming language you are going to be tackling this in, it is going to be hard to point you in the right direction.