I have a classified website for user to post anything to sell. When user confirm posting on my website. i would like to post his/her selling item in my fb wall as well to get more audiences. Does anyone know what to look for? In trying to research but share and like button are not my solution. Many thanks
You will want to take a look at the Facebook PHP SDK.
https://developers.facebook.com/docs/reference/php/4.0.0
You will need to sign is as a developer with Facebook and create an app for your website. You'll find examples on the developer website that will help you.
Related
I am developing a website with share buttons for social medias like Facebook and Twitter. Like: Sharingbuttons.io
I was wondering if there is a way to implement the same share feature to Tik Tok, Youtube, and Vimeo. I researched and haven't found a way so far.
Not really, the thing is that Youtube, Vimeo, and Tik Tok do not really have a share like facebook and twitter do. Yes you can send messages to your friends, or post it on your youtube 'feed', but it doesn't quite work the same as facebook or twitter sharing.
Furthermore, if the capability existed, the website of the company would have all the information about creating embeded share buttons such as facebook an twitter do. Similar with their API information.
I know it's probably not the answer you wanted, and I might not be 100% correct, but after looking around for a bit and testing some of my own code, I did not manage to find an effective solution.
DISCLAIMER:
I am not responsible for anything you do, this is just for information purposes only.
A complicated workaround might be to save the webpage you want the user to be at when they click the button, in this case your Tik Tok share page, and then feed their comment into the empty textboxes using javascript, but then when they are redirected to this site, they would be asked to signin, and their information would be needed. Then all the stuff they wrote when they were planning on sharing would disappear and they would be logged into the Tik Tok page.
Also this is probably illegal begause it involves you serving them a page that is "Tik Tok", but in reality it's just your webpage so you can pass information along to the real website.
Cheers!
Use Case: I want to create a login button for "Login with Facebook". I want this functionality to be implemented using c# or asp.net with JavaScript or with JavaScript alone.
Requirements:
1) On the click of "Login with Facebook" button a pop up asking for email address should be visible.
2) When the user enter(s) the email address then a verification email is sent to the user.
3) When the user clicks on the "Verify" button in the email, then the user gets redirected to the Home page.
4) On the home page a pop appears asking user to provide permission to access the facebook details.
5) When the user finally allows it, it gets login from his facebook account.
Can anyone provide me a explanation for the above task? Any help will be greatly appreciated. Thanks in advance.
You should just use OAuth2 and follow the recommended process by facebook. Have a look at the documentation of the facebook graph API here.
Remember to create a facebook developer account here.
If youre using ASP.NET, there is an included Facebook OAuth2 client. Have a look at this link here. Its actually pretty easy to accomplish a simple facebook login and retrieve an access-token.
I know thats alot of links but you will have to first read a bit about the whole process to understand how it works.
Hope this helps and good luck.
Really wracking my brains about how to do this but i basically dont even know where to start.
Basically twitter has functionality that allows a link to open a twitter box that a user can populate and then post directly onto a chosen twitter feed:
https://about.twitter.com/resources/buttons#mention
Its super simple, all it requires is changing the URL parameters of the target link.
Im trying to do something similar with facebook. Ideally a link clicked on my site would open a facebook page with a prompt for user to type their comment and login to post to the 3rd party wall. I definitely do not want to be handling any FB authentication on my end as i imagine this would be far beyond my rather novice coding abilities.
An alternative would be to capture the comment with a text box on my end and then pass this through to facebook to write onto the wall.
Ive trawled the net and stack exchange looking for solutions but most seem to be geared to putting a comment on the users wall rather than a 3rd party.
Honestly im not super active on any social media anyway so my knowledge of how they function is quite limited. If anyone could give me a steer and some possible solutions (or alternatively just out and out that it is impossible) that would be fantastic.
You can use the Facebook JavaScript SDK, and invoke the feed dialog using that.
The feed dialog has a to parameter into which you can fill the Facebook ID of the profile that you would like the user to post to. However, the profile who's ID you fill in there must have authorized the same app as the one that you initialized the SDK for. That means this approach is likely impractical.
In any event, here's a piece of example code.
If you would like to use graph API to post to a profile's timeline (using the profile-ID/feed POST endpoint), you'll have to implement Facebook Login as well. However, since Graph API v2.0 is mandatory for all apps now, you can only find those profile IDs of people who have also authorized the same app.
This is probably even less practical for you, given that you don't want to implement Facebook login.
As far as I can see, these are your only options to achieve what you are looking for at this time.
I have a web page that has the user take a quiz, I would like them to then be able to share their results on facebook. I am using html, javascript, and jquery. I am wondering if there is a way to share custom feeds on facebook. Most people use php however I do not want to use php just keep it client side. I have been on facebook's documentation for a few days now and I can't seem to get a straight answer on how to add a button or link to my page that will share what I want it to share rather than the meta data of my site. Thanks in advanced.
https://developers.facebook.com/docs/reference/dialogs/feed/
The FB.ui feed dialog is perfect for that, JavaScript SDK only :)
I have a webpage and a facebook-page with a decent number of followers (fans). Now I want to integrate facebook in my webpage using the JS-SDK, this requires an application_ID from facebook. Creating an app from scratch will give me one, but it will not be connected to my old facebook page.
Is it possible to use my old facebook-page as a fan-page for a facebook app?
At the time of writing it seems like there is no way of connecting an old facebook page with a new facebook application. I ended up creating a seperate fb-application and keeping my old page. I use the new application to allow people to post their content on facebook, but I use the old page for likes to my website. Hopes this helps others wondering.
I was wondering about the same thing. I am creating a CakePHP application and I use Facebook in this application as well. I've had a Facebook page for my website for awhile and right now I have over 1000 followers/likes.
I wanted to get an API Key and Secret Key for that page, or create an APP from the page. I've looked everywhere on FB and cant find anything related. I really need to do that and if FB wont allow it, I really wanted to understand why.
If you found anything related to this please let me know. Thanks.