Can I edit my posts on the telegra.ph web using my account created by API - telegraph

I created an account through Telegraph API and created pages by API. However, I don't know how to create or edit pages through Telegraph Web with this account created by API.

The answer is Telegraph API#getAccountInfo has a field called auth_url. I could use this URL to log in the telegraph web.

Related

create page programmatically for a test user

Can I create via api pages for a test users?
This is what I did:
Given my app, I got the user's token from app dashboard test users and I tried to use it in the graph explorer (POST /user_id/accounts).
I've the error "(#10) Application does not have permission for this action".
These are the permission the app has been granted for: manage_pages, publish_pages, publish_actions
Do I miss some permission or it is not possible?
Luca
[Edited following Simon's advice and the response below:]
I've been looking into this all day and it seems the answer is a solid, "Nope."
According to the developer documentation on creating pages, the {user_id}/accounts endpoint only supports Reading, not Creating, Updating, or Deleting.
Although apparently if you apply for Standard API access, you can receive permissions to create pages. (Only available if your app is generating ad revenue.)
Googling, reading and trying, I figure out that we can create a page via api.
https://developers.facebook.com/docs/graph-api/reference/page/#Creating Applications with Standard API Access can create Pages through the API using the following paths: /{user_id}/accounts
So the answer to my question is yes, if your application has the Standard API Access, no matter if you are dealing with test users or not. Note that teh call is slow (about 5 sec.)
That's it.

application_id for promoted_object for AdSet of Facebook Marketing API

Question about application_id for promoted_object of Facebook Marketing API.
I'm trying to create Ads for mobile applications published to Apple App Store or Google Play Market. These are applications of my clients, they are not mine and I don't have access to them.
I have successfully created AdCampaign object with objective=MOBILE_APP_INSTALLS.
But I can't create AdSet object for this campaign.
AdSet requires promoted_object with application_id and object_store_url fields provided. While I can provide object_store_url (it's just a link to application app store page) but I can't provide application_id for this app because this application is not mine.
At the same time business.facebook.com web interface does not require application_id. It requires application_url only. Screenshots: http://take.ms/jFQyY http://take.ms/CCBGM http://take.ms/pmNap
How can I retrieve application_id using application appstore url?
Or maybe it is possible not to specify application_id field for promoted_object of AdCampaign with objective=MOBILE_APP_INSTALLS at all?
According to the Marketing API documentation for "Creating Ad Sets with Promoted Object", it says "You cannot specify an object_store_url on its own without an application_id, this is something only available via our native interfaces.".
To retrieve the application_id, you may try the Connection Objects API to get the list of connected Applications to your Ad User account. Your clients need to grant you the advertiser role to their Facebook Application first before you can start listing the applications via Connection Objects API.
Connection Objects API is able to return the object_store_urls, which means you don't need to provide the app store URL manually.

Posting and Sharing photo with Facebook API but edit App name

Hi the web app i am working on posts photos in Facebook with the Facebook API. This works fine . But the image says "shared via #{App name}". I realise that the App name comes up since i have registered the app and using its app id for API usage. Is there any way to edit that App name and make is appear "shared via #{some new name}"

Why are Facebook Graph API permissions so weird?

I have created a Facebook page. On the page I have created some events and some notes. Everything as public as possible. Now I want to expose the data on my website using the Graph API.
The general data of the page is accessable without any access token, which is nice.
The event data is accessable using a FB app with app_id and app_secret.
For the notes you need a "user access token", which isn't an option, because not all of the website visitors have a FB account.
Why must it be so complicated? Does anyone have a solution?
Greetings
Allan

Can I create a facebook app automatically(from a java program) using any api from a java program or servlet?

I am searching for an automated mechanism to create a facebook app from my java program/servlet.
Usually, I have to go to developers.facebok.com, then click the "Apps" link at the top, then hit the "Create new App" button and create an app by providing the site url etc.
I am having a requirement where a user enters his facebook id in my site and hits the "Create App" button. My site will authenticate with facebook using OAuth 2.0 and will have to create an app in the users account. The app generally points to the user's profile page of my site.
Is it possible to do this? Can any one help me?
Thank you all in advance.
In short, no you can't. You have to verify that you are a human when you create an app, and facebook intentionally do not provide a way to programmatically create apps.