Integrating Facebook API in Your Website

Hello Geeks!
This article demonstrates how to integrate the Facebook API into your website.
Introduction
As we all know, social media plays a vital role in taking any firm/organization from foot to neck. This simple principle is universal and applicable to each and every type of organization. But when it comes to eCommerce then.
Getting Started
Since you understand what a social network can do for you, in return it takes nothing from you, yeah I said “nothing”.
Just follow these simple steps to get started.
- First of all visit this official link of the Facebook AppGuide:
https://developers.facebook.com/docs/app-events/best-practices
- Look for the My Apps Option in the header, as show below:
- Click on the My Apps Options and then on “Add a New App” My Apps -> Add a New App.
- After clicking on “Add a New App”, you will get something like the following:
Actually, this is an option window that contains 4 options. Just choose any one and proceed further quickly.
(In my case I am going with the “Website” option.)
- Select any and move quickly
- As you click on any of that four available options you will ext get this window, requiring some details about your website, such as:
Site URL
Mobile URL
And then, click on “Next”
- As you click on “Next” you will get a similar window, shown below. This screen will share the First Step, “Setup SDK” with you and share other.
- So in the beginning you are here:
- Then you will get a code snippet, just paste that snippet into your website wherever you want to integrate that Facebook content.
Here’s a snippet.
- <script>
- window.fbAsyncInit = function() {
- FB.init({
- appId : ‘564784100291609’,
- xfbml : true,
- version : ‘v2.3’
- });
- };
- (function(d, s, id){
- var js, fjs = d.getElementsByTagName(s)[0];
- if (d.getElementById(id)) {return;}
- js = d.createElement(s); js.id = id;
- js.src = “//connect.facebook.net/en_US/sdk.js”;
- fjs.parentNode.insertBefore(js, fjs);
- }(document, ‘script’, ‘facebook-jssdk’));
- </script>
- The very second step is App Configuration.
(You don’t need to do anything in that step, just move forward to the next.)
- Then here comes the next step, “Test”. In this step you too check whether all that is working or not. They call it “Test Your Facebook Integration”.
- For that just follow the words written below
That’s all guys, it’s over. Clap for yourselves. You’re Facebook API integration.
I hope you guys will love that.
Stay tuned for Twitter and some other social networking integrations like Facebook API integration.
Until then, keep sharing and happy learning. 🙂
A motivating discussion is definitely worth comment. There’s no doubt that that you should write more on this issue, it may not be a taboo matter but generally people don’t discuss such issues. To the next! Kind regards!!|
Hey Buddy!
Thanks, for your kind suggestion, we’ll do that for sure. Cheers! 🙂
A person necessarily assist to make significantly posts I’d state.
That is the very first time I frequented your website
page and thus far? I amazed with the analysis you made to make this particular post extraordinary.
Fantastic process!
Hey Buddy!
Thanks, for your words and keen observation. Keep visiting us for more enthralling content.
Cheers! 🙂
Really enjoyed this post.Really looking forward to read more. Really Great.
Hey, glad to hear that. Thanks for your words. Keep sharing, Cheers! 🙂
A person essentially lend a hand to make seriously articles I would state. That is the very first time I frequented your website
page and so far? I surprised with the analysis you made to make this actual submit incredible. Great job!
Hey, thanks for such a lovely comment. Cheers! 🙂
Hi everyone, it’s my first go to see at this website, and article is actually fruitful in support of me, keep up posting such articles.
Hey, glad to hear that man. Keep visiting for more. Cheers! 🙂
I have recently started a website, the information you provide on this web site has helped me tremendously. Thank you for all of your time & work.
I simply want to mention I am just beginner to blogs and seriously liked your web site. Most likely I’m want to bookmark your website . You actually have incredible stories. With thanks for sharing with us your web site.
I truly appreciate this article post.Really thank you! Want more.
Awesome post. Much thanks again. Awesome.
keep working splendid job i have some ideas from this thanks i have some ideas from this thanks so much excellent.
What’s up, very good webpage you possess here.|
I simply could not depart your web site before suggesting that I actually loved the standard info a person supply for your visitors? Is gonna be again ceaselessly to investigate cross-check new posts
I simply want to say I am just newbie to weblog and definitely loved this blog. Almost certainly I’m planning to bookmark your blog post. You really come with remarkable stories. Appreciate it for sharing your blog site.
Hi!, I love your writing very much! From beginning to the end you present everything like a story. I’ll say writing level- PRO. :blink
This is one awesome post.Much thanks again. Great.
Highly educational, looking forward to coming back again.|
This is really interesting, You’re a very skilled blogger. I have joined your feed and look forward to searching for extra of your magnificent post. Additionally, I’ve shared your website in my social networks!
Thanks a lot for the blog.Thanks Again. Much obliged.
Wow, this article is good, my younger sister is analyzing such things, thus I will tell her.
It’s will be end of mine day, except before finish I am just looking over this impressive article to improve my experience.