Configuring Friend Connect

8 views
Skip to first unread message

Rajiv R

unread,
Dec 3, 2008, 2:37:30 PM12/3/08
to Google App Engine
am trying to use friend connect for my app engine application. I am
told to place 2 .html files in the app's home url i.e
http://<appname>.appspot.com/<filename>.html.

I tried a few options in app.yaml but they all result in 404-Not
Found.

any suggestions?

Cheers!
Rajiv

Andi Albrecht

unread,
Dec 3, 2008, 5:28:27 PM12/3/08
to google-a...@googlegroups.com
Hi Rajiv,

here's how I did it... I copied the two files in a directory called
"static" (where all my CSS and images live). Then I'd added the
following lines to app.yaml:

- url: /rpc_relay.html
static_files: static/rpc_relay.html
upload: static/rpc_relay.html

- url: /canvas.html
static_files: static/canvas.html
upload: static/canvas.html

I'm not sure if you can omit the upload directive. But the relevant
part is to point the urls to the files you've downloaded from the
friend connect page.

Hope that helps,

Andi

kang

unread,
Dec 4, 2008, 4:50:48 AM12/4/08
to google-a...@googlegroups.com
right

i've configured for my app....

but what do you think of the Friend Connect? I think an appengine website need not use it...
--
Stay hungry,Stay foolish.

Andi Albrecht

unread,
Dec 4, 2008, 7:17:23 AM12/4/08
to google-a...@googlegroups.com
On Thu, Dec 4, 2008 at 10:50 AM, kang <areyou...@gmail.com> wrote:
> right
> i've configured for my app....
> but what do you think of the Friend Connect? I think an appengine website
> need not use it...

Why not? Could be a nice extra for some applications... But it would
be great to have an easy option to re-use an login on an appengine
website for Friend Connect (any hints? maybe I've just missed
something...)

kang

unread,
Dec 4, 2008, 7:24:12 AM12/4/08
to google-a...@googlegroups.com
GAE itself has google account model, and user can login.. but if they want to post through FriendConnect ,they need to login for the second time....

it's not a good user experience
--
Stay hungry,Stay foolish.

Andi Albrecht

unread,
Dec 4, 2008, 7:57:18 AM12/4/08
to google-a...@googlegroups.com
On Thu, Dec 4, 2008 at 1:24 PM, kang <areyou...@gmail.com> wrote:
> GAE itself has google account model, and user can login.. but if they want
> to post through FriendConnect ,they need to login for the second time....
> it's not a good user experience

You're right, I think it's very confusing or maybe even annoying if a
user has to login two times on two different Googlish-looking login
pages...

And from a developer's point of view it would be much easier to spice
up an already existing appengine application with some social features
if one could just use a Python API to Friend Connect with an user
object already present within appengine. [just dreaming... ;-)]

yejun

unread,
Dec 8, 2008, 4:06:58 PM12/8/08
to Google App Engine
Is it possible to fetch user information after user login friend
connect?

On Dec 4, 7:57 am, "Andi Albrecht" <albrecht.a...@googlemail.com>
wrote:
> On Thu, Dec 4, 2008 at 1:24 PM, kang <areyouloo...@gmail.com> wrote:
> > GAE itself has google account model, and user can login.. but if they want
> > to post through FriendConnect ,they need to login for the second time....
> > it's not a good user experience
>
> You're right, I think it's very confusing or maybe even annoying if a
> user has to login two times on two different Googlish-looking login
> pages...
>
> And from a developer's point of view it would be much easier to spice
> up an already existing appengine application with some social features
> if one could just use a Python API toFriendConnect with an user
> object already present within appengine. [just dreaming... ;-)]
>
>
>
> > On Thu, Dec 4, 2008 at 8:17 PM, Andi Albrecht <albrecht.a...@googlemail.com>
> > wrote:
>
> >> On Thu, Dec 4, 2008 at 10:50 AM, kang <areyouloo...@gmail.com> wrote:
> >> > right
> >> > i've configured for my app....
> >> > but what do you think of theFriendConnect? I think an appengine
> >> > website
> >> > need not use it...
>
> >> Why not? Could be a nice extra for some applications... But it would
> >> be great to have an easy option to re-use an login on an appengine
> >> website forFriendConnect (any hints? maybe I've just missed
> >> something...)
>
> >> > On Thu, Dec 4, 2008 at 6:28 AM, Andi Albrecht
> >> > <albrecht.a...@googlemail.com>
> >> > wrote:
>
> >> >> Hi Rajiv,
>
> >> >> here's how I did it... I copied the two files in a directory called
> >> >> "static" (where all my CSS and images live). Then I'd added the
> >> >> following lines to app.yaml:
>
> >> >> - url: /rpc_relay.html
> >> >>  static_files: static/rpc_relay.html
> >> >>  upload: static/rpc_relay.html
>
> >> >> - url: /canvas.html
> >> >>  static_files: static/canvas.html
> >> >>  upload: static/canvas.html
>
> >> >> I'm not sure if you can omit the upload directive. But the relevant
> >> >> part is to point the urls to the files you've downloaded from the
> >> >>friendconnect page.
>
> >> >> Hope that helps,
>
> >> >> Andi
>
> >> >> On Wed, Dec 3, 2008 at 8:37 PM, Rajiv R <rajsp...@gmail.com> wrote:
>
> >> >> > am trying to usefriendconnect for my app engine application. I am

kang

unread,
Dec 8, 2008, 7:56:24 PM12/8/08
to google-a...@googlegroups.com
I have not seen any api from google friend connect
--
Stay hungry,Stay foolish.

Duncan

unread,
Dec 9, 2008, 4:09:52 AM12/9/08
to Google App Engine
On Dec 9, 12:56 am, kang <areyouloo...@gmail.com> wrote:
> I have not seen any api from google friend connect
>
See http://www.opensocial.org/Home

Chris Roat

unread,
Dec 30, 2008, 6:10:02 PM12/30/08
to Google App Engine
Hey Duncan,

Thanks for the pointer. I've made some progress, but I'm wondering
where to send my RPCs in order to connect with friendconnect? What
should be the value of the 'url' variable below?

url = '???'
params = {
'userId': '@me',
'groupId': '@self',
}
rpc_body = {
'method': 'people.get',
'params': params,
'id': opensocial.request.generate_uuid(url),
}
http_request = opensocial.http.Request(url, method='POST',
post_body=rpc_body)
fetcher = opensocial.http.get_default_urlfetch()
http_response = fetcher.fetch(http_request)
if http_response.status == httplib.OK:
content = http_response.content
else:
content = 'no good'

benzrad

unread,
Jan 3, 2009, 9:11:29 PM1/3/09
to Google App Engine
i tried the code, but it don't work on my app at http://app21zh.appspot.com
.in friend connect in the process to setup the site, it still reported
can't find the 2 files, which i had place all over including static
folder.
i need more instruction.TIA.


On Dec 4 2008, 6:28 am, "Andi Albrecht" <albrecht.a...@googlemail.com>
wrote:
> Hi Rajiv,
>
> here's how I did it... I copied the two files in a directory called
> "static" (where all my CSS and images live). Then I'd added the
> following lines to app.yaml:
>
> - url: /rpc_relay.html
>   static_files: static/rpc_relay.html
>   upload: static/rpc_relay.html
>
> - url: /canvas.html
>   static_files: static/canvas.html
>   upload: static/canvas.html
>
> I'm not sure if you can omit the upload directive. But the relevant
> part is to point the urls to the files you've downloaded from the
> friend connect page.
>
> Hope that helps,
>

Geoffrey Spear

unread,
Jan 4, 2009, 6:55:05 PM1/4/09
to Google App Engine
Can you post your app.yaml and the exact location you put the files?

On Jan 3, 9:11 pm, benzrad <dab...@gmail.com> wrote:
> i tried the code, but it don't work on my app athttp://app21zh.appspot.com

benzrad

unread,
Jan 5, 2009, 4:13:53 AM1/5/09
to Google App Engine
app.yaml:

application: app21zh
version: 1
runtime: python
api_version: 1

handlers:
- url: /static
static_dir: static

- url: /img
static_dir: img

- url: .*
script: main.py

file structure:
-img
-skins
--default
-static

TIA. hope i can get a answer.
btw, do u think if google soon will add native support of friend
connect with its app engine, which render my endeavor to add friend
connect to my appspot a vain?

benzrad

unread,
Jan 6, 2009, 11:19:32 PM1/6/09
to Google App Engine
could u help me, with what u asked?
TIA.

benzrad

unread,
Jan 13, 2009, 11:06:56 PM1/13/09
to Google App Engine
thx. i found ur answer on ur blog, and its works well. too nice!
now i hope i have a script to switch different friend connect script
according visiting url. u know, my appspot with custom domain mapping
blocked in China surveillance, while native appspot, like http://app21zh.appspot.com
, accessible in China. i had setup both domain, http://forum.be21zh.org
, and http://app21zh.appspot.com with my google friend connect. i hope
my appspot can returned respectively according visiting url.
thx again.
Reply all
Reply to author
Forward
0 new messages