Comments (5)
OK, why not submit a pull request?
I was thinking about this recently. So, ideally what happens is the
contacts are stored in remoteStorage, in a 'contacts' module. Sockethub
does no contact management (of course), but can fetch contact lists from
various social networks -- leaving it to the app the worry about merging
in, identifying duplicates, etc.
On area I'm not sure the answer to yet, breaks up into several questions:
- how should the contacts look when they come back to the client after the
fetch request?
- Is this something we should be concerned with activity streams for?
- Or is it another "out of scope" situation that has more to do with
sockethub internals than the problem domain activity streams was meant to
address? - What should the response verb be, fetch?
- Does the response come back as a non-massaged raw facebook data?
- So the app would need to know all the various parsing rules for each
social network (i dont like the idea of making the app worry about this,
but it's faster & simpler for sockethub, and what you implemented in your
patch)? - Or, should each entry come back either as it's own response, or in an
array, but massaged and normalized?
Curious to know if you've given it much thought as you were writing this
feature? Or just wanted to get the data from facebook to the app and didn't
think about these questions? I'm a little hesitant to just make the app
handle the various data formats of the different platforms - that seems to
go against the ideal of sockethub, don't you think?
Cheers!
Nick
On Thu, Mar 7, 2013 at 8:43 AM, Michiel@unhosted
[email protected]:
i know the syntax for this is still up in the air, but i went ahead and
created a 'fetch' verb that allows you to retrieve the list of facebook
friends of the current user:—
Reply to this email directly or view it on GitHubhttps://github.com//issues/54
.
from sockethub.
i'll make it a pull request when it works, right now it's still just experimental code.
yes, i'm also writing the contacts module at the same time, but connected only via the app, so remoteStorage and sockethub don't have talk to each other directly
from sockethub.
On Thu, Mar 7, 2013 at 8:50 PM, Michiel@unhosted
[email protected]:
i'll make it a pull request when it works, right now it's still just
experimental code.yes, i'm also writing the contacts module at the same time, but connected
only via the app, so remoteStorage and sockethub don't have talk to each
other directly
yeah, that's the best way to go. are you planning to add data
normalization? if so we should discuss the format, otherwise I will do it
and make some tickets for after you pull request
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/54#issuecomment-14602683
.
from sockethub.
yeah, i am going to work ahead a little bit in my fork with several things i need for myself, to survive in the No Cookie Crew. And then we can see which ones you want to merge upstream (you already indicated for instance you're not interested in the 'shell' platform, that's fine) and for the ones you do want to merge in, how they all fit in.
in this case i think it's easiest if you just copy that o.fetch function from the link above, and fit that into your code in a way that makes sense to how you're architecting it. as soon as upstream sockethub can fetch facebook contacts, i will update https://unhosted.org/adventures/13/Dealing-with-users-in-unhosted-web-apps.html to refer to Sockethub master instead of to my 'adventures fork'.
For that, also, maybe at some point you want to tag a version tag that apps can refer to? because if an app says 'this app requires sockethub', then it will get bit rot every time something changes; it's much easier for an app to be able to say 'this app requires sockethub-0.17.3'
from sockethub.
Issue more than a year old, closing.
from sockethub.
Related Issues (20)
- Actor type is wrong for room presence updates HOT 2
- "credentials" message type throwing a validation error HOT 3
- Validate outgoing AS objects HOT 1
- Alert ahead of time when Redis isn't listening
- Tag and publish pre-release of 5.0 HOT 1
- Split sockethub package into sockethub and @sockethub/server HOT 1
- Improve linting
- Generate Sockethub config with command-line tool
- Sockethub shutting down instead of handling exception HOT 8
- Add option to force clients to provide a token for access
- Platform Idea: Readability
- Switch to yarn workspaces and lerna-lite?
- i can not 'yarn run start' HOT 8
- docker-compose build does not seem to work HOT 1
- `socket.io.js.map` 404
- Platform Idea: Discourse Chat HOT 1
- Do we need to still support Node 14.x ? HOT 2
- Switch to `pnpm` & use it's workspaces
- Sentry integration
- Add tooltips and more descriptive text in the examples package
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sockethub.