telegraph , python ,telegram bot - telegraph

How to upload several photos to telegraph in python?
for example I have several photos and they should be uploaded to telegraph using python?
create_page(title, content=None, html_content=None, author_name=None, author_url=None, return_content=False)[source]¶
there is such method create page, is it possible to send link of photos to content paramert(create page)
I am very bad at programming and especially for asking the questions, first question in stack overflow, sorry!

Related

How to request data from an open source website such as Reddit or Github and display on the Local Django Website?

I am quite a newbie to Django and I am trying to understand how API calls and requests work in Django. I have a simple Django website that has User login and authentication system. I want a user to save the top ten reddit posts and display them on their respective login system. I have seen the request method in Python and some web-crawling methods. I am unable to figure out a way to request data from Reddit .
Here is the code I have written so far :
https://github.com/darthvedder17/Django-Website-Reddit

Sharing large pictures with a facebook application

How do I share a big picture from an application?
We have an application with a trivia quiz, but we can only share small pictures.
Is it possible to share a picture at the original size?
here is the link for testing the apps:
https://www.facebook.com/LeChampionDeBlueExorcistCommunity?sk=app_374441249291232
Use Open Graph to share stories with (large) user generated action photos.
The documentation is here: https://developers.facebook.com/docs/opengraph/usergeneratedphotos/
Something like this will work, in conjunction with an Open Graph action post.
https://graph.facebook.com/me/yournamespace:cook?
recipe=http://www.yourdomain.com/pizza.html&
image[0][url]=http://www.yourdomain.com/images/my_camera_pizza_pic.jpg&
image[0][user_generated]=true
You can also post a photo to a user's albums using the https://developers.facebook.com/docs/reference/api/photo/ API
Which you choose to use partly depends on the use case you have in mind.

Uploading photos to a Fan Page Album

I'm creating an Application to upload photos to an album on a Fan Page.
This all seams to work as long as I'm the administrator for that Fan Page using the "manage_pages" permissions... but whenever I try to upload it as a "regular" user it fails because the user doesn't have the administrator rights (which of course makes perfectly sense).
I just can't seem to find a solution to solve my problem and to allow people to upload photos to the Fan Page's Album without becoming an fan-page administrator.
I really hope someone can help me since I've been struggling a few days trying to get this to work.
Cheers, Dwight
Non-Admins are not allowed to post to a fan page's album. They can post a picture to the page's feed. The page's feed album is different than the admin album. I tested this out last week for a similar question asked on S/O.

Using the Facebook Graph API for posting a customized image on user's facebook wall

In my Facebook app the user can assemble a couple of small images to a larger image. Is it at all possible to post this image to the user's wall without posting it as a photo?
As far as I can see, the alternative would be to post a link to a web page that contains the og:image meta tag but this appears to be quite cumbersome since I'm dealing with a customized image.
Is there any another way to post the image to the wall?
Tried with the picture property on the post object which worked. For some reason it didn't work when I tried it some weeks back.

Pulling Facebook photos onto an external website

I'm doing a job for Company A. I've just built their website in Django but now they want to add a social photo management aspect to the site (in that other people can upload).
The only way I know of doing this (having done it before) is through Flickr. You can set up a group and have it so anybody can add photos to it. And pull out the latest with RSS. But let's be honest, Facebook is far more popular and my client wants this feature heavily used by his clientèle.
They have a Facebook page and the power to open it up so anybody can add their photos to it... But how can I pull those photos back to the website?
Facebook's query language can do this (like the RSS sends data to you from Flickr) for users of FB pages, and there are some Javascripts for making them viewable and interactive on external web pages.
For example:
http://www.codeofaninja.com/2011/06/display-facebook-photos-to-your-website.html
http://www.alexanderinteractive.com/blog/2012/03/display-facebook-photos-on-your-website-with-galleria/
Good luck!
Terry
I'm not sure if this will help, but I recall that the Flock Web Browser had the capability of loading a stream of new videos/photos on the top of the brower's media stream bar - perhaps you can sneak a peek into the inner workings it uses to accomplish this task.
I know that you can start reading the RSS feed of a Facebook Page itself now, perhaps just a little parsing is all you need: http://www.allfacebook.com/facebook-pages-rss-2010-01