d6veteran / greenbean-sk Goto Github PK
View Code? Open in Web Editor NEWGrean Bean GAE Application
Home Page: http://greenbean-sk.appspot.com
Grean Bean GAE Application
Home Page: http://greenbean-sk.appspot.com
Ok First push js/ obvious static/ GAE (or Python) needs to know where the static files are for reference templates/ this is where I put the templeted html files base.html / this is the base html. The other files 'inherit' tis one. I put the js (for voting) and the scripts that FB needs. index.html / this is the main file for the FB app. This extends base.html On this file I have the list of statues for beans. I think I use this for all statuses as well as a per user status - I just change the package that gets sent to this file The package of statues is contained in 'beans' - and on this file I just loop through whatever gets sent in and displays. userStatus.html / I don't think I'm using this for display at this point - just for posting app.yaml / base GAE main.py / the guts index.yaml / GAE DB Index file facebook.py / the Facebook SDK facebook.pyc / the FB SDK compiled
The button still appears on some pages - this should be removed.
Implementing the auto-resize looks good in Firefox, but Safari is continually blinking.
Anyone can share a Brag on behalf of another user.
Repro:
1 - Go to profile for a user that is not you (User A).
2 - Make sure you are logged in (User B) and enter a Brag on User A's profile page and then share.
3 - The Brag is posted for User A.
On IE - for the FB app - there are issues with seeing the full list of brags (only shows the top few) and the bottom links appear on the side and need to scroll over to see them.
The user should not be able to make a post if they are not logged in.
I have a stable "web" build. It doesn't work in an iFrame. So now we need to branch authentication logic so we can provide login/logout from the iFrame. Basically, from the MainHandler, we call a method to get the user, and in that method we can pass the referer uri and do something different for Facebook iFrames.
I can try to do this, or you can work it back in while I work on templates.
We should get on the phone today if you can.
Reproduce:
Traceback (most recent call last): File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 517, in __call__ handler.post(*groups) File "/base/data/home/apps/sampyxisstockwatcher/1.347083389687007549/main.py", line 100, in post results = facebook.GraphAPI(user.fb_access_token).put_wall_post(message, attachment) File "/base/data/home/apps/sampyxisstockwatcher/1.347083389687007549/facebook.py", line 144, in put_wall_post return self.put_object(profile_id, "feed", message=message, **attachment) File "/base/data/home/apps/sampyxisstockwatcher/1.347083389687007549/facebook.py", line 126, in put_object return self.request(parent_object + "/" + connection_name, post_args=data) File "/base/data/home/apps/sampyxisstockwatcher/1.347083389687007549/facebook.py", line 179, in request response["error"]["message"]) GraphAPIError: (#200) The user hasn't authorized the application to perform this action
I realized that the first request is serving a Facebook Template, but subsequent attempts are not.
I'm detecting by Referer, so the first hit is from Facebook, but secondary hits in the iFrame show appspot as the Referer (with is technically true within the scope of the iFrame).
This is causing problems with the login button. So I need a way to consistently and reliably detect requests from a Facebook iFrame.
How many brags do we show per page? Need paging.
Here's what it currently looks like: http://willmerydith.com.s3.amazonaws.com/test-images/gb-status-facebook-wall.png
Need to redesign:
The url in the browser bar stays at /auth/login/?code=...
Need a refresh to a the app name for the browser (app.facebook.com/gbsamtest)
Should we put the number of beans the user has in the list of brags?
I think it would make it a bit more competitive.
Reproduce:
models.py contains the definitions of the new Datastore Models. These need to be merged into the existing code, which will cause some havoc as it will break existing Models and references to them.
A user should only be able to vote once per Brag.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.