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: {......
Change
url: 'https://graph.facebook.com/?pageid/?access_token='+pageid+accesstoken,
to
url: 'https://graph.facebook.com/?pageid='+pageid+'&access_token='+accesstoken,
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With