Advertisement
Guest User

Untitled

a guest
Nov 25th, 2014
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. { [Error: APISubscriptionError: Invalid URL. The URL may be on a private network.]
  2. code: 400,
  3. error_type: 'APISubscriptionError',
  4. error_message: 'Invalid URL. The URL may be on a private network.',
  5. retry: [Function] } undefined
  6.  
  7. var express = require('express');
  8. var app = express();
  9. var api = require('instagram-node').instagram();
  10.  
  11. api.use({access_token : 'xxxxxxxxxxxxxxx'})
  12. api.use({
  13. client_id:'xxxxxxxxxx',
  14. client_secret:'xxxxxxxxxxxxx'
  15.  
  16. });
  17.  
  18. var redirect_uri = 'http://127.0.0.1:3000/callback';
  19.  
  20.  
  21. api.add_geography_subscription(48.565464564, 2.34656589, 100, 'http://127.0.0.1:3000/callback',
  22. {},
  23. function(err, result, remaining, limit){
  24. console.log(err,result)
  25.  
  26. });
  27.  
  28. app.listen(3000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement