Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

server issue in sample #42

Closed
akhilkailas opened this issue Mar 10, 2016 · 6 comments
Closed

server issue in sample #42

akhilkailas opened this issue Mar 10, 2016 · 6 comments

Comments

@akhilkailas
Copy link

Error: Cannot find module '../../fb'
at Function.Module._resolveFilename (module.js:339:15)
at Function.Module._load (module.js:290:25)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at Object. (C:\nodejs\scrumptious\app.js:3:21)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Function.Module.runMain (module.js:447:10)

whenever i try to run sample app.js i get the above error

@dantman
Copy link

dantman commented Mar 10, 2016

Sorry, tbh I haven't put any effort into trying to maintain the sample app. I'd rather maintain the docs, but I've been hesitant to simply delete the sample app.

@akhilkailas
Copy link
Author

@dantman i am learner in nodejs.so can i get the fb profile picture through this sdk is there any option for that if that please let me know sir.

@dantman
Copy link

dantman commented Mar 10, 2016

This SDK just lets you make Facebook/Graph API calls. Lookup the information for what you want to do in Facebook's Graph API Documentation. For the most part making API calls using this SDK is the same as doing them using Facebook's own "JavaScript SDK", which has examples in Facebook's documentation. But in general it's a simple matter of turning the url into the API path and parameters (query or post).

The API call to get a profile picture is /v{version}/{user-id}/picture?redirect=false, so for the current user ("me") that would be FB.api('/me/picture', {redirect: false}, cb); using this server side SDK. Be sure to include an access_token as a parameter.

"How to do this in the Graph API" questions are best asked on StackOverflow.

@bluet
Copy link

bluet commented Jul 30, 2016

@akhilkailas #66 fixed that. Maybe you'd like to try.

@bluet
Copy link

bluet commented Apr 16, 2017

Samples has been removed in #92
This issue remain unfixed but became invalid.

@dantman
Copy link

dantman commented Apr 16, 2017

Due to the issues I outlined in #48 I'm just removing samples/ for 2.0.0.

#91 describes an alternative that may be more useful than the sample app ever helped anyone.

@dantman dantman closed this as completed Apr 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants