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
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.

 

 

 

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.