How can I create an API similar to Facebook or Twitter where users copy some javascript to their website?
-
I would like to provide something like a "share" button for my website. Users can copy some javascript which will create a link to share a page via my website. When clicking on the link, I would handle authentication for my website. I know that Facebook and Twitter already have similar functionality so this is a common feature of large websites. Are there any good resources to get started? I'd rather start with something then hacking it together and finding out later that there was a much better way to go about it. (I will write this in PHP and javascript)
-
Answer:
You can use Ajax to check I they are signed in. If they are not you can append HTML to the body to make a popup and sign them in again with Ajax, and finally once they are signed in POST the link to that page maybe even with a message from the user to a database
Gabriel Manricks at Quora Visit the source
Related Q & A:
- How can I create my own hosted svn server?Best solution by stackoverflow.com
- How can I create a cute, artsy, unique facebook profile?Best solution by Quora
- How Can I Create an XML to Create a Menu?Best solution by Drupal Answers
- How can I create inbound links to my website?Best solution by eHow old
- How do i create an away message on facebook?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.