Comments (4)
Same for us! Is that because FB changed the URLs they serve?
UPDATE: probably! we're only getting the error on some invocations, not all. Maybe they're AB-testing something or haven't yet rolled out the change to all their servers...
We believe we fixed it by patching the url_options method in fgraph.rb:
def url_options(url)
return unless url
# Ruby's URI implementation craps out when the pipe symbol '|' is found
uri = URI.parse(url.gsub('|', '%7C'))
options = {}
...
end
from fgraph.
@jnylund: doing parse(encode(url)) is a really bad idea, since this will break again as soon as Facebook fixes the issue and returns URLs that are already encoded (you will end up with a double-encoded URL)
from fgraph.
@kaeppler - agreed, have switched to your fix, thanks!
from fgraph.
Thanks for the note guys, patch is in 0.6.1
from fgraph.
Related Issues (10)
- rake task issue HOT 1
- (OAuthException) Error processing access token. HOT 4
- rake fgraph:setup fails for gem HOT 4
- Best way to get data from videos HOT 1
- confllict with desert plugin? HOT 1
- rails 3.0.3
- Issue Abuse in the name of Gratitude HOT 1
- FGraph::OAuthError in SessionController#oauth_callback
- Results from "comments" request are sometimes Arrays instead of Hashes
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 fgraph.