Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page is disabled exception #3

Open
kienntk opened this issue Jan 10, 2017 · 1 comment
Open

Page is disabled exception #3

kienntk opened this issue Jan 10, 2017 · 1 comment

Comments

@kienntk
Copy link

kienntk commented Jan 10, 2017

Dear Zalo team,

I am so sorry because raise issue in PHP language when I am using .NET SDK but I am unable to find Zalo SDK for .Net on Github.

I am developing application to interact with my Zalo company page, but when I push text feed, it occured exception: -221 : page is disabled.

Here is my code:

try
            {
                ZaloServiceFactory factory = new ZaloServiceConfigure(pageId, secretKey).getZaloServiceFactory();

                ZaloMessageService messageService = factory.getZaloMessageService();

                ZaloSocialService socialService = factory.getZaloSocialService();

                socialService.pushTextFeed("TODAY IS A QUITE NICE DAY");
            }
            catch (ZaloSdkException ex)
            {
                Console.WriteLine("Err = " + ex.getErrorCode());
                Console.WriteLine("Mes = " + ex.getMessage());
                Console.ReadLine();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.StackTrace);
                Console.ReadLine();
            }

Thank you very much for your help!

@hoangthienan
Copy link
Member

Thank you @kienntk for using SDK and this repo unofficial Zalo Php SDK,
As I've recently switched jobs, and I no longer use Zalo-SDK

Ref http://developer.page.zaloapp.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants