I'm using Disqus basically as the "wall" for users on my website. Note I'm not using wordpress or anything similar, a "custom" so to speak disqus implementation.
http://disqus.com
When a user registers I'd like to be able to subscribe them to the disqus thread associated with their own profile page so they'll get email notifications. I imagined it would be something along the lines of SUBSCRIBE_BY_EMAIL($user_email,$thread_id). I was not able to find any such function in the disqus documentation, or through internet searching.
Help?
If you're still confused what I mean feel free to take a look at the user profile pages on my website:
http://www.orderofprestige.com
You might be able to use the Disqus Web API, optionally with their own PHP implementation, for this. If they have no public API for it, you are most probably out of luck (that is, if you don't use client-side black hat JavaScript like Clickjacking).
Related
I have seen some websites who allows their users to register or log in with social networks. I want to do the same for my WordPress blog, I already started to learn about it, but the more I read, the more I am getting confused. That's why I am asking for the help here.
I want to allow my WordPress blog users to log in or register with Google. I Have already created Client ID, Email address, Client secret, Redirect URIs, JavaScript Origins. But I don't know how to use them.
Well using a plugin for this sort of functionality is absolutely recommended, because you dont have to care about the security and other issues. Even seasonal programmers get a bit confused using the OAuth library but to start with checkout this tutorial it is as simple as it can be.
http://www.w3resource.com/API/google-plus/tutorial.php
Either way you will have to still create your own plugin and once you get the data from the google api, you will have to use a function like wp_create_user or wp_insert_user to register those users. This is pretty much what a (free) out of box plugin can do for you.
I have a PHP based website which has a post/comment system. Can I add a checkbox to my post function so that if it is checked the post will be published to Facebook as well as my own website at the same time?
I have looked through the docs on facebook and I saw a comment plugin, but it's not really what I am looking for.
I would appreciate a tutorial, links, code, or just general help.
If you're looking for a way to replicate the auto-posting functionality in the fb:comments plugin, the only way to accomplish that is asking the users to install an app. By using the sandboxed fb:comments social plugin, Facebook controls the user experience, so users can post to their wall without an install. If you use your own method though, you'll need to require an install (and publish_stream permissions).
I'd recommend using fb:comments if at all possible, since that creates less friction for your users and will be a more familiar experience for them. If you wish to do something with the comment as it's added, you can subscribe to the comment.create event.
May be you can use the Feed Dialog have a look: http://bit.ly/rQWC36
You can launch the dialog if the checkbox is checked, after submit the comments form.
Or may be you can use the OpenGraph API versión of the feed dialog, look for the section: "Graph API Equivalent" documentation doesn't sais nothing about permission on using that dialog this way. I hope it helps.
I am still unsure of what you are looking for but still facebook api is a good place to start off. A part from that, the checkboxes and automatically going to facebook that you have referred will be done according to your language/framework which you have not illustrated.
I'd like to remove as much as possible of my history with a certain facebook user via the Facebook API.
I want to be able to remove photo tags, wallposts, messages that I am tagged in, or associated with the certain user.
Is this possible, and if yes; how?
Blocking the user will go a long way towards removing most connections with the person in quesion. Go to Account->Privacy Settings->Manage Block Lists, or go to the users profile and look for the "Report/Block" link under their friends/family lists.
This FAQ about blocking describes a little about what happens when you block someone. As far as photos goes, it's a little unclear:
Photos: If the blocked person tagged you in any photos before the block, you’ll still be able to see those photos. You might also see photos of the blocked person if they are tagged in another friend’s album, but you won’t be able to click on their name to see their profile.
You do automatically get un-tagged from all their photos when you block someone. I'm guessing wall posts you're tagged in are removed as well, although I only tested with photo tags.
As far as removing their posts to your wall, as Igy pointed out you can't write an app that uses the API to delete posts that it didn't create. So, what I would do is write an app that gets all the posts on your wall and filters them, something like this pseudo-code:
posts = api('/me/feed')
for each post in posts:
if post.from.id == [blocked persons id]:
output post.id
Post ID's from the Graph API are in the format USERID_POSTID, so there are two ID's separated by an underscore. So for each ID in the output, go to https://www.facebook.com/permalink.php?story_fbid=[POSTID]&id=[USERID] and manually delete the post by selecting "Remove post" from the little gear menu on the top right of the post. Use the paging data from your API request, or until and since parameters (which are just UNIX timestamps, or any string accepted by the strtotime function), as described on http://developers.facebook.com/docs/reference/api/ under "Paging", to get all posts going back until the beginning of your wall.
If you are wanting to automate this process to make it available to end users and not just yourself, there are technically several ways you could go about it, although they may or may not violate (Terms of use)[http://www.facebook.com/terms.php]:
[3.2] You will not collect users' content or information, or otherwise access Facebook, using automated means (such as harvesting bots, robots, spiders, or scrapers) without our permission.
I'm sure there are ways of implementing such an app that doesn't violate these terms, for example providing a link to the post so that they can delete it themselves, rather than automatically deleting them.
http://suicidemachine.org/
I'd look into their code.
From their FAQ on if you can make your own:
Theoretically yes! Practically no (or let's say, not yet)! You'd need a Linux WebServer (apache2) with perl and python modules (php should be installed as well). Further, you'll need VNC-server and Java packages by Sun to launch selenium-remote applets. If you feel like contributing and can convince us with decent programming skills, please get in contact with us via email. We don't make the source code publicly available, since Facebook, Twitter, Myspace and LinkedIn would figure out how the suicidemachine is working in detail! So, please do not contact us, if you work for one of these companies!
I'm not even sure (personally) why you'd want to do this, surely you'd either want to block the other user or just remove them as a friend, but to answer your question:
It's not possible to delete most types of content via the API unless the App ID you're using was the original creator of that content (e.g an app for posting to your wall can delete the posts it made, but not posts made by other apps or on the Facebook.com interface)
Check the documentation at http://developers.facebook.com/docs/reference/api/ - you can definitely remove likes and comments of photos and wall posts - there may be other ways to do this (e.g retroactively changing your RSVP status to an event both users went to)
Currently I am building a small application that allows a user to sign in to their Facebook account and update their status from within the application.
However, the Facebook API does not seem well documented and I am having trouble locating sources of information that are relevant to the specific project that I am building.
Does anyone know of any articles that might be of use to me?
Thank you.
The documentation is there, scattered around and difficult to find, but there. These two links may help if you are looking to post to someone's wall. FB.ui is sort of a multi-purpose call that will present different dialogs, prompting the user for action. It's far easier to implement than it is find.
http://developers.facebook.com/docs/reference/javascript/
http://developers.facebook.com/docs/reference/javascript/fb.ui/
As far as I can tell you can't add the Developer package to a Pages account - as in I haven't got a Facebook profile.
It's for business purposes and I'd really like to know if you can use the Facebook API to update a Pages status.
Thanks :)
Yes its possible although not officially documented.
Pageids behave in many function calls very similar to profileids.
You dont need to add the developer app to a page - remember: you neither need your users to add it.
I am pretty sure that the Stream API wont work. But you can do the approach described at http://www.allfacebook.com/2009/04/public-profile-twitter/
If you are not into Development and simply want to update your page you can use your twitter account and add a hashtag to sync it to your facebook page with Selective Twitter.
http://www.facebook.com/apps/application.php?id=115463795461
Update: as pointed out below http://ping.fm is also a good service offering this feature