Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 62 results for
accesstoken
- Page 1
How to connect to the Pinterest API using PHP?
Programming
Web Development
1 Month Ago
by FarrisFahad
…($data, JSON_PRETTY_PRINT)); } // Successfully received access token $
accessToken
= $data['access_token']; echo "Access Token: " . htmlspecialchars($
accessToken
); ?> Here is the error message…
Re: How to connect to the Pinterest API using PHP?
Programming
Web Development
1 Month Ago
by Dani
Never trust ChatGPT to write fully flushed out code for ya :) Pinterest uses OAuth to authorize your app on behalf of your app's end-user, if that makes sense. For example, your goal is for your end-user to load up your app, and have access to *their* Pinterest account. What OAuth does is give your end-user the ability to grant your app …
Re: How to connect to the Pinterest API using PHP?
Programming
Web Development
1 Month Ago
by Dani
Oh, it looks as if the tutorial was for the old DaniWeb API that no longer exists. The [DaniWeb Connect API](https://www.daniweb.com/connect/developers) is also OAuth-based and has some of its own documentation.
my facebook site cant logo out
Programming
9 Years Ago
by Edwin_7
… if (isset($_SESSION['facebook_access_token'])) { $
accessToken
= $_SESSION['facebook_access_token']; } else { $
accessToken
= $helper->getAccessToken(); } }…token $_SESSION['facebook_access_token'] = (string) $
accessToken
; // OAuth 2.0 client handler $…
Fatal error: Uncaught exception 'Google_AuthException' with message 'Error
Programming
Web Development
10 Years Ago
by tNicknames
…quot;)) { // Save token for future use $
accessToken
= $client->authenticate($authCode); file_put_contents("token.…json",$
accessToken
); } else $
accessToken
= file_get_contents("token.json"); $client->setAccessToken($
accessToken
); $file = new …
Skeleton FB app built on PHP
Programming
Web Development
9 Years Ago
by Sourav_5
…['facebook_access_token'])) { $fb->setDefaultAccessToken($_SESSION['facebook_access_token']); } else { $_SESSION['facebook_access_token'] = (string) $
accessToken
; $oAuth2Client = $fb->getOAuth2Client(); $longLivedAccessToken = $oAuth2Client->getLongLivedAccessToken($_SESSION['facebook_access_token…
Facebook Access Token error
Programming
Web Development
7 Years Ago
by Sebastiano
…(). if (response.status === 'connected') { var
accessToken
= response.authResponse.
accessToken
; // Logged into your app and Facebook. console.…("token = " +
accessToken
); window.location.href = "login.php?token=" +
accessToken
; } else { // The person…
Post on FB timeline with Graph API post Caption 2 times need help
Programming
Web Development
11 Years Ago
by Rizi004
…://graph.facebook.com/$FBID/accounts/?access_token=$
AccessToken
"); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE…the user if ($pageAccessToken!=""){$
AccessToken
=$pageAccessToken;} $msg_body = array('access_token' => $
AccessToken
, 'name' => '', …
facebook api exception #100-invalid parameter in c#
Programming
Software Development
10 Years Ago
by mjbor1
…s my code public static bool post(string
accesstoken
,string status,string link) { try { FacebookClient fb …= new FacebookClient(
accesstoken
); Dictionary<string, object> postArgs = new …
Facebook Graph API, How to get an active access token?
Programming
Web Development
9 Years Ago
by Hilal2009
…quot;); require_once("facebook-sdk/src/Facebook/Entities/
AccessToken
.php"); require_once("facebook-sdk/src/…\GraphUser; use Facebook\HttpClients\FacebookCurl; use Facebook\Entities\
AccessToken
; use Facebook\HttpClients\FacebookHttpable; use Facebook\HttpClients\FacebookCurlHttpClient;…
help this code return a c #(phyton to c# converter)
Programming
Software Development
6 Years Ago
by lancelot_1
… from datetime import datetime botEmail = "" # botun email adresi
accessToken
= "" # Botun access tokeni host = "https://api.… = 4000 headers = {"Authorization": "Bearer %s" %
accessToken
, "Content-Type": "application/json"} @app.route…
Leaflet.js map not showing until resize
Programming
Web Development
5 Years Ago
by HelenLF
….tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token={
accessToken
}', { attribution: 'Map data © <a href="https://www.….com/">Mapbox</a>', id: 'mapbox.streets',
accessToken
: 'my access token is added here' }).addTo(mymap); L.polygon…
How to get female friendlist by facebook graph api?
Programming
Web Development
12 Years Ago
by rv1990
….limit(10).fields(gender,name)'),'data', array('access token' =>$
accessToken
)); ?> <div class="list"> <h3…
Warning: Wrong parameter count for mysql_close
Programming
Databases
12 Years Ago
by izam.lukman
…($id)){ die("Hacking Attempt"); } else{ $token = $_GET["
accesstoken
"]; include('config.php'); //Create facebook application instance. $facebook = new…
How to store array elements in MySQL database. in a single column
Programming
Web Development
9 Years Ago
by anupamjamatia
…. $sql = "INSERT INTO users1 (name, token, message) VALUES ('{$name}', '{$
accessToken
}', '{$total_posts}')"; if ($db->query($sql) === TRUE) { echo "…
Re: How to store array elements in MySQL database. in a single column
Programming
Web Development
9 Years Ago
by anupamjamatia
…); $sql = "INSERT INTO users1 (name, token, message) VALUES ('{$name}', '{$
accessToken
}', '{$comma_separated}')"; if ($db->query($sql) === TRUE) { echo "…
Login problem
Programming
Software Development
7 Years Ago
by Stat_1
… newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String
accessToken
, Boolean applyTransientFaultHandling) +821 System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options…
Laravel Cookies are not Set?
Programming
Web Development
7 Years Ago
by KaleBeatroot
…->encrypt($encryptedToken), 604800, null, null, true, true ); $response = [ '
accessToken
' => $response->access_token, 'accessTokenExpiration' => $response->expires_in…
Facebook SDK Get my name and friend name problem
Programming
Web Development
7 Years Ago
by John_116
…\FacebookRequestException; use Facebook\FacebookAuthorizationException; use Facebook\GraphObject; use Facebook\Entities\
AccessToken
; use Facebook\HttpClients\FacebookCurlHttpClient; use Facebook\HttpClients\FacebookHttpable; // init app…
Issue with isLoggedIn function for Passport-local/Slack strategy.
Programming
Web Development
7 Years Ago
by Mark_79
…({ clientID: process.env.SLACK_CLIENT_ID = '123456', clientSecret: process.env.SLACK_CLIENT_SECRET ='123abc', }, (
accessToken
, scopes, team, extra, profiles, done) => { done(null, profiles.user…
Facebook Graph API: How to get AccessToken in PHP SDK v5
Programming
Web Development
9 Years Ago
by Hilal2009
Here are my codes, I want to get access token after user login, but I don't know where am I wrong guys. I know to get access token in PHP SDK v4 but I think It's quite different in PHP SDK v5. Please help me guys <?php session_start(); require_once("Facebook/autoload.php"); use Facebook\Facebook;…
Re: Facebook Graph API: How to get AccessToken in PHP SDK v5
Programming
Web Development
9 Years Ago
by cereal
The error message suggests to enable the web OAuth login, so go to your *Facebook App dashboard > Settings > Advanced*, scroll to **Client OAuth Settings** and set **Web OAuth Login** to **Yes**, then it should work.
Re: Facebook Graph API: How to get AccessToken in PHP SDK v5
Programming
Web Development
9 Years Ago
by Hilal2009
The error message suggests to enable the web OAuth login, so go to your Facebook App dashboard > Settings > Advanced, scroll to Client OAuth Settings and set Web OAuth Login to Yes, then it should work. Refer to the picture below, these are my settings together with the error that I get from what you have said
Re: Facebook Graph API: How to get AccessToken in PHP SDK v5
Programming
Web Development
9 Years Ago
by cereal
Ok, the URI registered in your script and in your App defines the port number: http://localhost:80/feedreader/fdposter.php But in your browser (screenshot) the port number is missing: http://localhost/feedreader/fdposter.php If you're using port 80, then try to remove it from the App settings and from the script, as this is an …
Re: Facebook Graph API: How to get AccessToken in PHP SDK v5
Programming
Web Development
9 Years Ago
by Hilal2009
Ok, the URI registered in your script and in your App defines the port number: http://localhost:80/feedreader/fdposter.php But in your browser (screenshot) the port number is missing: http://localhost/feedreader/fdposter.php If you're using port 80, then try to remove it from the App settings and from the script, as this is an implicit port …
Re: Automatic Facebook Post Bumper
Programming
Web Development
9 Years Ago
by Lucas_7
…; 'Nothing was processed!']; if (!empty($posts)) { $
accessToken
= "1106227486057176|xxxxxxxxxxxxxxxxxxxxxxxxuyE"; foreach ($posts as $page…isset($bumpResult['error'])) { $removalResult = BumpPost("removeBump", $
accessToken
, $bumpResult); foreach ($removalResult as $key => $value) …
Re: Automatic Facebook Post Bumper
Programming
Web Development
9 Years Ago
by Lucas_7
…; 'Nothing was processed!']; if (!empty($posts)) { $
accessToken
= "1106227486057176|9SnNQUiP09SjWKpN29jYIgG3uyE"; foreach ($posts as $page…isset($bumpResult['error'])) { $removalResult = BumpPost("removeBump", $
accessToken
, $bumpResult); foreach ($removalResult as $key => $value) …
Re: How to authenticate java desktop application for a facebook user
Programming
Software Development
13 Years Ago
by dantinkakkar
…('&'); var url = path + query; window.open(url); } else { var
accessToken
= window.location.hash.substring(1); var path = "https://graph….facebook.com/me?"; var queryParams = [
accessToken
, 'callback=displayUser']; var query = queryParams.join('&'); var url = path…
Re: We have an API :)
Community Center
Meta DaniWeb
12 Years Ago
by Tekmaven
… is some sample code to use the WhoAmI method: var
accessToken
= "use the documentation to learn how to get this…("me", Method.POST); request.AddParameter("access_token",
accessToken
); var response = client.Execute(request);
Re: We have an API :)
Community Center
Meta DaniWeb
12 Years Ago
by riahc3
> For the C# users in this thread, all you need to do is use RestSharp. It will handle the API rather nicely. Here is some sample code to use the WhoAmI method: > > var
accessToken
= "use the documentation to learn how to get this"; Mind setting a example on how to aquire the
accesstoken
in C#?
1
2
3
Next
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC