Jump to content

can't get flickr oauth to work.


xymalf

Recommended Posts


$f = newphpFlickr(56aa3435b13d0e377f4d93,$3******);
$f ->getRequestToken($callback);

 

this should get a token and i have set the callback url to the folowing page below.

 


<?php
    $f = newphpFlickr ($56aa3435b13d0e377f, $3a6b257 ));  
    $f-> getAccessToken();
    $OauthToken = $f-> getOauthToken();
    $OauthSecretToken = $f-> getOauthSecretToken();


include ('finduser.php');

 

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/266550-cant-get-flickr-oauth-to-work/
Share on other sites

I have uploaded all the phpFlickr files into a directory called phpflickr on my server.

 

here is my code to request a token.

 


<?php

$api_key = '56aa3435b13d0e377f*********';
$secret = '3a6b257*****';

$callback = "http://www.xymalf.co.uk/phpflickr/getOauthToken.php";



$f = new phpFlickr($api_key,$secret);
$f ->getRequestToken($callback);

?>

 

getOauthToken has been set up on Flickr as the call back page but when I run above i just get a blank page.

 

my getOauthToken page is...

 


<?php

$api_key = '56aa3435b13d0e3';
$secret = '3a6b';




    $f = new phpFlickr ($api_key, $secret ));  
    $f-> getAccessToken();
    $OauthToken = $f-> getOauthToken();
    $OauthSecretToken = $f-> getOauthSecretToken();


finduser();

 

 

phpFlickr.php is in the same directory as all my files.

 

 

 

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.