HTML / JavaScript - Post message on facebook wall from my web - javascript

this question may sound stupid, but im getting frustrated from searching around, and i cant manage to do that:
I want to create a button on my web (not an applications if that matters), and when the user will click on it, it will post a dynamic message on his wall.
Do i have to use javascript SDK for it, or is there a simpler way?
Thanks!

You have to use Facebook Connect (Facebook SDK for Javascript).
Take a look at this:
https://developers.facebook.com/docs/javascript/quickstart/v2.2
But before use this API you need to create an APP ID in the Facebook developers page and use this ID to authenticate through OAuth:
https://developers.facebook.com/apps
This link also explains you how to use Facebook SDK with jQuery
https://developers.facebook.com/docs/javascript/howto/jquery
I hope it helps.
Edited:
If you want something really simple. You can use Social Plugins to allow the user share your website. But I'm not really sure if you want to post a custom message for the user.
https://developers.facebook.com/docs/plugins/share-button/

Related

Facebook Like, Comment and Share links via API feed

I've created a Facebook feed using the Graph API which simply displays a few of the latest posts from a Facebook Page.
I've also done the same with the Twitter API, and within those tweets displayed I have created Retweet, Reply and Favourite buttons using their Web Intents.
e.g.; https://twitter.com/intent/like?tweet_id=<?php echo $tweets[0]['id']; ?>
However, I'm struggling to find a way to do a similar thing with the Facebook feed. Simply a Comment, Like and Share button as above.
I'm aware Facebook provides it's own embeddable plugins/buttons but those are not what I'm looking for.
Facebook's own stuff is ugly and would not look great in the design. I'm looking for a URL or something that allows me to create my own buttons.
Is there a way to do so at all?
Thanks.

How to send facefook notification to the users on a blog post created?

I'm developing a site similar to blog. In that I would like to add a facebook notification feature.
For example, if I created one article it should send a notification to the subscribed facebook users.
I have done facebook share. But I don't know about this.
Note: I'm using asp.net and c# for the web development.
Is this possible. if possible, can someone say a way to achieve it.
First of all You will need to create a facebook application and add your web page as a "Web Page with Facebook login": You can find this setting in application settings. After you will need to log in your blog users via facebook and ask for some basic permissions (No special permission needed for sending notifications.) And after all these steps you will be able to send notifications to your users. Here are some resources that might help you.
https://developers.facebook.com/docs/games/notifications/
https://developers.facebook.com/docs/web/gettingstarted/
Here is the C# SDK resource.

How to tweet from a local webpage

I made a webpage that I open in my browser that uses Javascript to help me construct what I want to send on twitter. Then I have to copy and paste the text into a Twitter client in order to actually send it.
I would like to just have a button that I press on my page that will send the tweet instead of doing this. Is it possible? I've been looking at jsOAuth and it seems I need things like a consumer key and secret? I don't have those things. This isn't a public app, it's just something I'm making for my own personal use.
How can this be done?
You can do this with a regular tweet button. You can provide the text that you want to tweet about. Normally you would think this is for public use, but I've found it very useful for an admin section. Here is the link to the twitter dev page:
https://dev.twitter.com/docs/tweet-button
AFAIK OAuth requires a site to redirect to, also for cookie purposes.
There is something called OAuth for devices that let's you authenticate the application instead of the browser/client. Facebook supports it, Iam not sure if twitter does it too.
hth

Facebook like button for a facebook status

I've pulled some facebook statusses to my website and I would like to add a like-button to them. I can't seem to use the facebook like button generator. When trowing a url like this:
http://www.facebook.com/permalink.php?story_fbid=268577716517595&id=224519707563955 in the facebook url linter tool it sais it can't crawl itself.
Is there a way to fix this like-button? A way of custom coding a facebook like button? or is the only solution to redirect to this url?(Not an great option, i want the user to stay on my website)
I hope anybody has a solution for this.
You can perform an like of an object through the Graph API, but then the user have to authenticate your application.
See more under the like section here.

javascript facebook application force user to allow application to access his data

the question purpose is not for hacking purpose, iam doing an application that renders facebook itself, so once the user buy my application it means he permitted my application to access his data.
so i need to click on facebook allow application access data button programmatically.
is there a way to do so by javascript or any language?
thanks for help.
Facebook don't want you doing this. If you find a way to do it, you should expect Facebook will find a way to stop you. I suggest re-thinking your approach.

Categories

Resources