• Basic Facebook Guide
" How to Install Facebook Farmville Games , Geting Facebook Marketplace App, How to Make Facebook Fan Page, Deleting All Facebook Searches History on FB , How to Login Instagram with Your Facebook , Facebook Marketplace Buy and Sell within Local Community Near Me , How to Deactivate FB Account Temporarily on Facebook, How to View Blocked Facebook List to Unblock blocked Friends , How to Use the “Nearby Me Friends” FB Feature on Facebook , Facebook Customer Care Center & Email Help Supports Contact Addresses "
Showing posts with label fb welcome to facebook. Show all posts
Showing posts with label fb welcome to facebook. Show all posts

Welcome To Facebook Log I

 fb welcome to facebook, Welcome To Facebook Log I     No comments   

                                                   Welcome To Facebook Log
                                                                         
Welcome To Facebook Log I

PHP - Facebook Login
Advertisements

We can use Facebook login to allow the users to get access into the websites. This page will explain you about login with facebook PHP SDK.
Login With Facebook

Need to go https://developers.facebook.com/apps/ and click on add a new group button to make the app ID.

Give an app name and click on Create New Facebook App ID
Click on Create app ID
Click on Skip Quick Test

On Final stage, it will show as below shown image.


fbconfig.php file overview


Now download zip from here

Now open fbconfig.php file and add you app ID and app Secrete

FacebookSession::setDefaultApplication( 'your app ID','App Secrete ' );
// login helper with redirect_uri
$helper = new FacebookRedirectLoginHelper('You web address' );

Finally fbconfig.php file as shown below −

<?php
session_start();
// added in v4.0.0
require_once 'autoload.php';
use Facebook\FacebookSession;
use Facebook\FacebookRedirectLoginHelper;
use Facebook\FacebookRequest;
use Facebook\FacebookResponse;
use Facebook\FacebookSDKException;
use Facebook\FacebookRequestException;
use Facebook\FacebookAuthorizationException;
use Facebook\GraphObject;
use Facebook\Entities\AccessToken;
use Facebook\HttpClients\FacebookCurlHttpClient;
use Facebook\HttpClients\FacebookHttpable;

// init app with app id and secret
FacebookSession::setDefaultApplication('496544657159182','e6d239655aeb3e496e52fabeaf1b1f93' );
// login helper with redirect_uri
$helper = newFacebookRedirectLoginHelper('http://www.tutorialspoint.com/' );
try {
$session = $helper->getSessionFromRedirect();
}catch( FacebookRequestException $ex ) {
// When Facebook returns an error
}catch( Exception $ex ) {
// When validation fails or other local issues
}

// see if we have a session
if ( isset( $session ) ) {
// graph api request for user data
$request = new FacebookRequest( $session, 'GET', '/me' );
$response = $request->execute();

// get response
$graphObject = $response->getGraphObject();
$fbid = $graphObject->getProperty('id'); // To Get Facebook ID
$fbfullname = $graphObject->getProperty('name'); // To Get Facebook full name
$femail = $graphObject->getProperty('email'); // To Get Facebook email ID

/* ---- Session Variables -----*/
$_SESSION['FBID'] = $fbid;
$_SESSION['FULLNAME'] = $fbfullname;
$_SESSION['EMAIL'] = $femail;

/* ---- header location after session ----*/
header("Location: index.php");
}else {
$loginUrl = $helper->getLoginUrl();
header("Location: ".$loginUrl);
}
?>
Login page Overview

Login page is used to login into FB

<?php
session_start();
session_unset();

$_SESSION['FBID'] = NULL;
$_SESSION['FULLNAME'] = NULL;
$_SESSION['EMAIL'] = NULL;
header("Location: index.php");
?>
Index.php

Index page is as shown below.

<?php
session_start();
?>
xmlns:fb = "http://www.facebook.com/2008/fbml"

Login with Facebook

href = "http://www.bootstrapcdn.com/twitter-bootstrap/2.2.2/css/bootstrap-combined.min.css"
rel = "stylesheet"

<?php if ($_SESSION['FBID']): ?> <!-- After user login -->

class = "container"

class = "hero-unit"
Hello <?php echo $_SESSION['USERNAME']; ?>
Welcome to "facebook login" tutorial

class = "span4"

class = "nav nav-list"
class = "nav-header"Image

<img src = "https://graph.facebook.com/<?php
echo $_SESSION['FBID']; ?>/picture">

class = "nav-header"Facebook ID
<?php echo $_SESSION['FBID']; ?>

class = "nav-header"Facebook fullname

<?php echo $_SESSION['FULLNAME']; ?>

class = "nav-header"Facebook Email

<?php echo $_SESSION['EMAIL']; ?>

href="logout.php"Logout

<?php else: ?> <!-- Before login -->

class = "container"
Login with Facebook
Not Connected

href = "fbconfig.php"Login with Facebook

href = "http://www.tutorialspoint.com"
title = "Login with facebook"More information about Tutorialspoint

<?php endif ?>

It will produce the result. Before trying this example, please logout your face book account in your browser.
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

fb welcome to facebook

 fb page, fb welcome to facebook     No comments   

fb welcome to facebook

         
fb welcome to facebook
How to create a facebook welcome page and get more fans
Home » Business » How to create a facebook welcome page and get more fans

How to create a facebook welcome page and get more fans

If you’ve read a few of my articles in the past not only are you a total legend but you are also probably aware that I give Zuckers and his team a bit of a hard time for their incessant changes that are mostly poorly communicated and largely useless.

However there are rare occasions where they do something that is pretty awesome and/or exciting and that actually makes our lives easier. These occasions are worth celebrating, talking about, writing about and overall obsessing over due to the fact they are so completely unexpected. The problem is that they are STILL poorly communicated and normal plebs who don’t devote 90% of their day to reading about social media (Ok so maybe 10% reading about it and 80% chatting on facebook) tend to miss the boat.

That is where I come in. To use one million words to explain to you something that probably ten could do, but explain it nonetheless. So here’s my latest heroic facebook information session for all of you who own a facebook page (and as I’ve outlined in my previous post about managing a facebook page, you are pretty much a loser if you don’t).
In order to reach the million words, I wish to start with a bit of a story. Once upon a time there was an evil social networking-creating genius (let’s call him Zuckers) who created the world’s biggest and most lucrative digital network. He marvelled over how easy it was to get hundreds of millions of people to hand over all their personal information and be part of this network. It was all so easy for him, despite the fact some doofkopf twins were trying to take him for all he was worth, just when he was starting to land some seriously fine ass from the whole rich and famous thing.

Anyway, because of the evil part, he decided he wanted to try and mess with these people and at the same time make it difficult for others to capitalise on his creation without putting in some serious time and effort. This is where he came up with the creation of FBML, a coding language that developers were required to learn if they wished to do anything on HIS network. It was a pain in the arse and led to nobody doing much of anything, other than whingeing.

THEN Zuckers had a particularly pleasing night at the playboy mansion and decided that maybe he would make life a little less difficult for the trillions of facebook users who were still hating on him from the latest facebook profile update. He decided he would scrap his stupid network-exclusive code FBML and let people use iFrames and HTML instead. This opened up an entirely new world for people and businesses far and wide, and one of these opportunities was the ability to create a landing tab / welcome page for facebook pages relatively easily.
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg
Older Posts Home
How to Install Facebook Marketplace Near Me App

How to Create a Facebook Business Page

How to Completely Delete Facebook Search History

How to Sign in or Login Instagram with Your Facebook

Marketplace Facebook Buy and Sell within Local Community – Marketplace Facebook Buy Sell App

How to Deactivate FB Account Temporarily on Facebook

How to Find Blocked Facebook List to Unblock blocked Friends

How to Use the “Near Me Friends” Facebook Feature

FB Customer Care Center & Email Help Supports Contact Addresses

How to Install & Play the Facebook Farmville Games
How to Install Facebook Marketplace Near Me App

How to Create a Facebook Business Page

How to Completely Delete Facebook Search History

How to Sign in or Login Instagram with Your Facebook

Marketplace Facebook Buy and Sell within Local Community – Marketplace Facebook Buy Sell App

How to Deactivate FB Account Temporarily on Facebook

How to Find Blocked Facebook List to Unblock blocked Friends

How to Use the “Near Me Friends” Facebook Feature

FB Customer Care Center & Email Help Supports Contact Addresses

How to Install & Play the Facebook Farmville Games

Blog Archive

  • ▼  2019 (5)
    • ▼  July (5)
      • Selling Via Facebook Marketplace - Selling stuff o...
      • Facebook Buy and Sell – Facebook Buy and Sell Mark...
      • Link Facebook to Instagram – Login Instagram From ...
      • Facebook Marketplace Buy And Sell | Join Marketpla...
      • Facebook Marketplace - Facebook Online Marketing
  • ►  2018 (2310)
    • ►  December (2)
    • ►  November (181)
    • ►  October (197)
    • ►  September (1165)
    • ►  August (665)
    • ►  July (100)

Copyright © Basic Facebook Guide