Friday, May 10, 2024
 Popular · Latest · Hot · Upcoming
71
rated 0 times [  75] [ 4]  / answers: 1 / hits: 34741  / 9 Years ago, thu, july 9, 2015, 12:00:00

i am trying to pass the values of accesstoken and pageid inside the url that i use. Any ideas how to do it correctly?



<script type=text/javascript>   
function makeUrl() {
var accesstoken = 12345679|bababashahahhahauauuaua;
var pageid = <?php echo $page_id;?>;
$.ajax(
{
url: 'https://graph.facebook.com/?pageid/?access_token='+pageid+accesstoken,
statusCode: {......

More From » jquery

 Answers
6

Change



url: 'https://graph.facebook.com/?pageid/?access_token='+pageid+accesstoken,


to



url: 'https://graph.facebook.com/?pageid='+pageid+'&access_token='+accesstoken,

[#65866] Tuesday, July 7, 2015, 9 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
miles

Total Points: 256
Total Questions: 111
Total Answers: 104

Location: Benin
Member since Fri, Mar 24, 2023
1 Year ago
;